应用语言表达编辑软件加上已翻译的内容
2022-05-16 16:51:48
应用语言表达编辑软件加上已翻译的内容
您可以查询和升级模板中的一切语言表达,不论是您自身建立的翻译或是免费下载时附加的翻译。
在建立或升级翻译时,您必须将已翻译的内容加上到文本块:
搜索要翻译的内容
内容种类
搜索要翻译的内容
您可以应用语言表达编辑软件来搜索模板中您想翻译的文本内容。
内容种类
您也许期待翻译三种主要种类的内容:
纯文本
HTML
Liquid
您可以利用在文本字段名中键入翻译来翻译每段文本。
您无须翻译模板中的每一个字段名。您的变更会自行储存,而且您可以随意终止。假如要开展变更,您可以浏览一切目前翻译。
假如某一字段名并没有翻译,则将应用该模板的默认设置语言表达。
您可以立即翻译纯文本,但在翻译包括HTML或Liquid的文本块时,您必须非常的慎重。
翻译纯文本
针对您在线商店中的大部分文本,您不需要应用HTML或Liquid。当您键入纯文本块的翻译时,您只需将文本更换为采用别的语言表达的等效电路文本就可以。
包括HTML的文本块
假如文本块包括HTML,那麼您会见到成双的斜角引号()紧紧围绕英语单词或语句。
务必掌握在要翻译的块中应用HTML的方法。尽管您必须将绝大多数内容都保存为英文全文,但您也许必须翻译HTML标签内的一些英文单词。
通常应用包括HTML的文本块,缘故如下所示:
建立偏向在线商店别的部位或偏向别的网址的连接
为文本加上文件格式。
翻译HTML连接名字
HTML连接包括在以ahref=
开始,以/a
末尾的标签中。
您只有翻译连接的名字,而不可以翻译别的部件。连接名字是用户将见到的唯一连接一部分。
Continuebrowsingahref=/collections/allhere/a.
在这里示例中,您将应用适宜的翻译更换英语单词Continue(再次)、browsing(访问)和here(这里)。
切忌翻译连接中的目的详细地址(也称作总体目标)。目标详细地址是顾客点一下连接时将转至的部位。它自始至终表明在冒号中并偏向特殊网站地址。在示例连接中,总体目标详细地址为/collections/all
。
翻译应用HTML设定款式的文本
HTML有时候用以注重英语单词或语句、为其给予别的款式,或是用以表明标记。您只有翻译应用HTML设定款式的英语单词,而不可以翻译编码或标签自身。请查询示例,保证您掌握要翻译的内容及其应保存不会改变的内容。
HTML款式设定示例
在下列示例中,strong
标签用以以粗字体表明文本:
strongOnSale/strong
在这样的情况下,只需翻译英语单词OnSale。
在下列示例中,HTML编码larr;
和rarr;
用以形成左右箭头符号:
larr;PreviousProduct
NextProductrarr;
在这儿,您只需翻译短语PreviousProduct(上一个商品)和NextProduct(下一个产品)。
在下列示例中,HTMLstrong
标签用以字体加粗表明文件夹名称collection-sidebar.liquid。
Addatypetoyourproductsforthislisttobuilditself.Alllistsarecreatedinstrongcollection-sidebar.liquid/strong
这里的文件夹名称是一个Liquid模板文档。仅有在必须配对文件夹名称自身时才应翻译文件夹名称。例如,假如您已建立自身的文档,则很有可能必须变更HTML中的文件夹名称。
切忌翻译HTML标签或符号编码。他们由电脑浏览器应用,顾客没法见到。
包括Liquid的文本块
切忌翻译Liquid标签、目标或挑选器。
Liquid是一种模板语言表达,可操纵网址在不一样自然环境中的外型。Liquid内容自始至终包括在下列某组标记当中:
{{
and}}
{%
and%}
{%-
and-%}
例如:
Postedon{{date}}
在这里示例中,您只需翻译Liquid周边的文本,而不用翻译{{date}}
。
下列是采用纯文本、HTML和Liquid的搭配的文本字段名示例:
strong{{author}}/strongon{{date}}
尽管此示例很有可能看上去很繁杂,但您必须翻译的唯一一部分仅仅英语单词on。
Shopify商家官方网站全文详细信息:
Usingthelanguageeditortoaddtranslatedcontent
Youcanreviewandupdateanylanguageinyourtheme,whetheryoucreatedthetranslationyourselforitcamewiththedownload.
Youllneedtoaddtranslatedcontenttotextblockswhenyourecreatingorupdatingtranslations:
Findthecontentthatyouwanttotranslate
Typesofcontent
Findthecontentthatyouwanttotranslate
Youcanusethelanguageeditortofindthetextcontentinyourthemethatyouwanttotranslate.
Typesofcontent
Therearethreebasictypesofcontentthatyoumightwanttotranslate:
Plaintext
HTML
Liquid
Youcantranslateeachpieceoftextbyenteringtranslationsintothetextfields.
Youdonthavetotranslateeveryfieldinyourtheme.Yourchangesaresavedautomaticallyandyoucanstopatanytime.Youcanaccessanyexistingtranslationifyouwanttomakechanges.
Ifyouleaveafieldwithoutatranslation,thenthedefaultlanguageforthethemeisused.
Youcantranslateplaintextdirectly,butyoullneedtotakeextracarewhentranslatingtextblockscontainingHTMLorLiquid.
Translateplaintext
Formostofthetextonyouronlinestore,youdontneedtouseHTMLorLiquid.Whenyouenteratranslationofaplaintextblock,allyouhavetodoisreplacethetextwithitsequivalentintheotherlanguage.
TextblocksthatcontainHTML
IfatextblockcontainsHTML,thenyoullseepairsofangledbrackets(
)surroundingwordsorphrases.
ItsimportanttounderstandhowtheHTMLisbeingusedintheblockthatyouretranslating.AlthoughyoullneedtoleavemostofthecontentintheoriginalEnglish,theremightbesomeEnglishwordsinsideoftheHTMLtagsthatyoullwanttotranslate.
TextblocksthatcontainHTMLaretypicallyusedforthefollowingreasons:
creatinglinkstoanotherpartofyouronlinestoreortoadifferentwebsite
addingformattingtotext.
TranslateHTMLlinknames
AnHTMLlinkissurroundedintagsthatstartwith
ahref=
andendwith/a
.Youmusttranslateonlythenameofthelink,andnotitsothercomponents.Thelinknameistheonlypartofthelinkthatyourcustomerswillsee.
Continuebrowsingahref=/collections/allhere/a.
Inthisexample,youdreplacethewordsContinue,browsing,andhere,withasuitabletranslation.
Nevertranslatethedestinationaddress(alsoknownasthetarget)inalink.Thedestinationaddressiswhereacustomergoeswhentheyclickthelink.Itsalwaysshowninquotationmarksandpointstoaspecificwebaddress.Intheexamplelink,thedestinationaddressis
/collections/all
.TranslatetextstyledwithHTML
HTMLissometimesusedtogiveemphasisoradditionalstylingtowordsorphrases,ortodisplaysymbols.YoumusttranslateonlythewordsthatarebeingstyledbytheHTML,andnotthecodesortagsthemselves.Takealookattheexamplestomakesurethatyouunderstandwhattotranslateandwhatyoushouldleaveunchanged.
HTMLstylingexamples
Inthefollowingexample,the
strong
tagsareusedtodisplaytextinbold:strongOnSale/strong
Inthiscase,youdtranslateonlythewordsOnSale.
Inthefollowingexample,HTMLcodes
larr;
andrarr;
areusedtogenerateleftandrightarrowsymbols:larr;PreviousProduct
NextProductrarr;
Here,youdtranslateonlythephrasesPreviousProductandNextProduct.
Inthefollowingexample,HTML
strong
tagsareusedtodisplaythefilenamecollection-sidebar.liquidinbold.Addatypetoyourproductsforthislisttobuilditself.Alllistsarecreatedinstrongcollection-sidebar.liquid/strong
ThefilenamehereisaLiquidtemplatefile.Youshouldtranslatethefilenameonlyifitsnecessarytomatchthenameofthefileitself.Forexample,ifyouhavecreatedyourownfiles,thenyoumightneedtochangethefilenameintheHTML.
NevertranslateHTMLtagsorsymbolcodes.Theseareusedbyyourbrowser,andarenotseenbyyourcustomers.
TextblocksthatcontainLiquid
NevertranslateLiquidtags,objects,orfilters.
Liquidisthetemplatinglanguagethatcontrolstheappearanceofyourwebsiteindifferentcontexts.Liquidcontentisalwayswrappedinoneofthefollowingsetsofsymbols:
{{
and}}
{%
and%}
{%-
and-%}
Forexample:
Postedon{{date}}
Inthisexample,youwouldtranslateonlythetextaroundtheLiquid,andnot
{{date}}
.Heresanexampleofatextfieldthatusesacombinationofplaintext,HTML,andLiquid:
strong{{author}}/strongon{{date}}
Althoughthisexamplemightlookcomplex,theonlypartthatyoudneedtotranslateisthewordon.
文章内容由来:Shopify商户官方网站
部分文章来源于网络,如有侵权,请联系 caihong@youzan.com 删除。