久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='PtOC6'><tr id='PtOC6'><dt id='PtOC6'><q id='PtOC6'><span id='PtOC6'><b id='PtOC6'><form id='PtOC6'><ins id='PtOC6'></ins><ul id='PtOC6'></ul><sub id='PtOC6'></sub></form><legend id='PtOC6'></legend><bdo id='PtOC6'><pre id='PtOC6'><center id='PtOC6'></center></pre></bdo></b><th id='PtOC6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PtOC6'><tfoot id='PtOC6'></tfoot><dl id='PtOC6'><fieldset id='PtOC6'></fieldset></dl></div>

    <small id='PtOC6'></small><noframes id='PtOC6'>

    <tfoot id='PtOC6'></tfoot>
      <bdo id='PtOC6'></bdo><ul id='PtOC6'></ul>
    1. <legend id='PtOC6'><style id='PtOC6'><dir id='PtOC6'><q id='PtOC6'></q></dir></style></legend>

        Zend 框架中的多語(yǔ)言站點(diǎn)

        Multilingual Site in Zend Framework(Zend 框架中的多語(yǔ)言站點(diǎn))

          1. <small id='k6Mqt'></small><noframes id='k6Mqt'>

            • <bdo id='k6Mqt'></bdo><ul id='k6Mqt'></ul>
              <i id='k6Mqt'><tr id='k6Mqt'><dt id='k6Mqt'><q id='k6Mqt'><span id='k6Mqt'><b id='k6Mqt'><form id='k6Mqt'><ins id='k6Mqt'></ins><ul id='k6Mqt'></ul><sub id='k6Mqt'></sub></form><legend id='k6Mqt'></legend><bdo id='k6Mqt'><pre id='k6Mqt'><center id='k6Mqt'></center></pre></bdo></b><th id='k6Mqt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='k6Mqt'><tfoot id='k6Mqt'></tfoot><dl id='k6Mqt'><fieldset id='k6Mqt'></fieldset></dl></div>
              <legend id='k6Mqt'><style id='k6Mqt'><dir id='k6Mqt'><q id='k6Mqt'></q></dir></style></legend>
                <tbody id='k6Mqt'></tbody>
                1. <tfoot id='k6Mqt'></tfoot>
                  本文介紹了Zend 框架中的多語(yǔ)言站點(diǎn)的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在開發(fā)一個(gè)包含多語(yǔ)言支持的網(wǎng)站.我可以使用 Zend_Translate 翻譯字符串,但是內(nèi)容呢??例如,我是否必須為每種語(yǔ)言為同一產(chǎn)品添加多條記錄?或者還有其他方法嗎?我是多語(yǔ)言新手,請(qǐng)幫忙.提前致謝.

                  i am working on a site to include Multilingual Support. I can translate strings using Zend_Translate but what about the content?? For example do i have to add multiple records for same product's for each language? Or is there any other way? I am new to multilingual please help. Thanks in advance.

                  --- 補(bǔ)充 -----------------------------

                  --- Addition -----------------------------

                  好的,我決定使用混合解決方案來使用谷歌翻譯api并將其存儲(chǔ)在數(shù)據(jù)庫(kù)中以供進(jìn)一步編輯.那么存儲(chǔ)翻譯的數(shù)據(jù)庫(kù)結(jié)構(gòu)應(yīng)該是什么???

                  Ok, i decided to use a mixed solution to use google translation api and storing it in database for further editing. So what sould be the structure of database to store translations???

                  1. 我是否應(yīng)該將不同語(yǔ)言的翻譯保存在與父記錄相同的表中.即對(duì)于產(chǎn)品表中的產(chǎn)品,在標(biāo)識(shí)語(yǔ)言中有一個(gè)額外的列.
                  2. 一個(gè)通用的單個(gè)表,用于存儲(chǔ)所有表的所有翻譯.例如翻譯(id bigint、table_name vc(50)、table_id bigint、langugae、column_name vc(50)、translation)

                  我是否應(yīng)該將記錄保存在相關(guān)表中

                  should i save records in related tables

                  推薦答案

                  幾種可能的方法:

                  1. 使用 gettext(或 Poedit 之類的軟件)從內(nèi)容.可以使用變量插值.
                  2. 創(chuàng)建視圖過濾器,如:Zend 框架和翻譯
                  3. 在數(shù)據(jù)庫(kù)中有單獨(dú)的數(shù)據(jù)內(nèi)容.
                    如果您以標(biāo)記(例如 Markdown)格式存儲(chǔ)內(nèi)容,則任何人都可以輕松翻譯它.創(chuàng)建不同語(yǔ)言的搜索引擎很容易.
                  1. Using gettext (or software like Poedit) to extract the data from the content. Possible with variable interpolation.
                  2. Creating view filter like described in: Zend Framework and Translation
                  3. Have separate content of the data in the database.
                    If you store the content in markup (e.g. Markdown) format, anyone can translate it easily. It's easy to create search engine in different languages.

                  似乎第三種方法需要的努力最多,但值得.

                  Seems the third approach requires the most efforts, but it is worth.

                  我假設(shè)您將產(chǎn)品數(shù)據(jù)存儲(chǔ)在數(shù)據(jù)庫(kù)中,例如:

                  I assume you store your product data in the database, in fields like:

                  - product_data
                  -- id
                  -- price
                  -- name
                  -- description
                  -- etc…
                  

                  所以你應(yīng)該修改它,為每種語(yǔ)言的翻譯字符串添加字段:

                  So you should modify it, to add fields for translated strings in each language:

                  - product_data
                  -- id
                  -- price
                  
                  - product_data_translations
                  -- product_id
                  -- language (e.g. en)
                  -- name
                  -- description
                  -- etc
                  

                  然后您可以輕松構(gòu)建 SQL 查詢以提取翻譯后的數(shù)據(jù)where product_id=x and language="fr".

                  Then you can easily build SQL queries to extract translated data where product_id=x and language="fr".

                  您也可以使用 Doctrine I18N 自動(dòng)為你做.

                  You may use also Doctrine I18N to do it for you automatically.

                  您需要手動(dòng)翻譯內(nèi)容(或使用 Google API 自動(dòng)翻譯),但是,您可以使用例如 Zend_Search_Lucene.

                  You need to translate the content manually (or automate the translation using Google API), but then, you can easily index it using for example Zend_Search_Lucene.

                  這篇關(guān)于Zend 框架中的多語(yǔ)言站點(diǎn)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)
                    <bdo id='WhCzV'></bdo><ul id='WhCzV'></ul>

                    1. <i id='WhCzV'><tr id='WhCzV'><dt id='WhCzV'><q id='WhCzV'><span id='WhCzV'><b id='WhCzV'><form id='WhCzV'><ins id='WhCzV'></ins><ul id='WhCzV'></ul><sub id='WhCzV'></sub></form><legend id='WhCzV'></legend><bdo id='WhCzV'><pre id='WhCzV'><center id='WhCzV'></center></pre></bdo></b><th id='WhCzV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WhCzV'><tfoot id='WhCzV'></tfoot><dl id='WhCzV'><fieldset id='WhCzV'></fieldset></dl></div>

                        <tfoot id='WhCzV'></tfoot>

                        • <legend id='WhCzV'><style id='WhCzV'><dir id='WhCzV'><q id='WhCzV'></q></dir></style></legend>
                              <tbody id='WhCzV'></tbody>

                            <small id='WhCzV'></small><noframes id='WhCzV'>

                            主站蜘蛛池模板: 国产高清在线精品 | 看片网站在线 | 九九精品久久久 | 久久国产成人 | 欧美在线a| 亚洲香蕉在线视频 | 久久精品亚洲欧美日韩久久 | 免费视频一区 | 91在线看 | 羞羞视频在线观看 | 亚洲视频在线播放 | 秋霞a级毛片在线看 | av黄色片 | 最新av在线网址 | 91精品国产一区二区三区香蕉 | 精品欧美一区二区三区久久久 | 亚洲日韩中文字幕一区 | 99精品视频在线 | 男女羞羞免费视频 | 成人午夜激情 | 欧美片网站免费 | 亚洲97| 久久亚洲国产精品 | 亚洲第一成人av | 一级片免费网站 | 91精品国产一区二区三区 | 国产女人与拘做视频免费 | 国产一区二区精品 | 精品亚洲一区二区 | 亚洲视频一区二区 | 精品久久精品 | 亚洲一级av毛片 | 日韩精品一区二区三区中文在线 | 久久躁日日躁aaaaxxxx | 在线观看日本高清二区 | 久久6| 国产成人精品一区二区三区网站观看 | 国产精品国产三级国产aⅴ无密码 | 国产一区二区日韩 | 精品久久久久久久久久久下田 | 亚洲成人综合在线 |