translation

Translate website into different language [closed]

天涯浪子 提交于 2019-12-13 10:23:47
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . How can I convert my website into different language, for ex I want to translate it into Russian. It is a commercial website, i cant use google translate. How can I do it please guide me. Thanks 回答1: There are many articles in codeproject that can help you achieve this, refer to

Best way to translate a website?

梦想与她 提交于 2019-12-13 09:11:09
问题 In my website there are several english strings in the HTML and JS code ( NOT in the database ) and I need to translate these strings in others languages ( spanish, italian, etc ). What is the best way to do that ? I can save a cookie where there is the language but where can I put these translated strings ? 回答1: If you don't use a framework like, for instance, symfony2 (that have a component called translation) or Zend (that i'm sure will have some corrispective standalone "component"), a

TYPO3 loading default language instead of translation

江枫思渺然 提交于 2019-12-13 08:05:49
问题 I'm using TYPO3 (with no other choice for the moment) and I have to add a secondary language to the website. I have 2 languages: Default : English (en) set as L = 0 English US (en_US) set as L = 1 I've made the change in the RealUrl and in the main template. config.sys_language_uid = 0 config.language = en config.locale_all = en_US.UTF-8 page.config.language = en config.linkVars = L [GLOBAL] [globalVar = GP:L = 1] config { sys_language_uid = 1 htmlTag_langKey = en_US language = en_US locale

Internet Explorer 8, 9 window.open issue

混江龙づ霸主 提交于 2019-12-13 06:25:47
问题 when opening the code blow in IE 8 and 9 it opens only the http://translate.google.com/ without the languages codes and the sentences. it works fine in Chrome and Firefox. function DoTransGg(){ window.open('http://translate.google.com/#en|de|I want to travel with him.','_blank') } <input type='button' value='Google Translate' onclick='DoTransGg()'> 回答1: IE exhibits this behaviour only when used on localhost. With a remote webserver, it functions correctly, and includes the hash when executing

django makemessages issue

♀尐吖头ヾ 提交于 2019-12-13 04:33:49
问题 I am running python 2.7 and django 1.8.11 on Windows 7. After adding in the necessary translation string literals, I am trying to translate my site. I have followed the instructions as per the docs. This includes installing the GNU gettext utilities for windows 7 and the necessary locale folders/directories in the correct language code. In the virtual environment & at the command prompt of the root directory of my project, I run: django-admin makemessages -l de I get the following error at

Gettext works sometimes

与世无争的帅哥 提交于 2019-12-13 00:44:43
问题 I'm working on a project and I need to user translation for it. So I decided to use gettext in php but it's working sometimes. So I have a folder named lng and in this on I have a php file who call my lang file to translate my page. Here is the code : <?php if(isset($_GET['lang']) != '') { setcookie('lang',$_GET['lang'], time() + 365*24*3600, null, null, false, true); $_SESSION['lang'] = $_GET['lang']; $language = $_GET['lang']; } else if(isset($_SESSION['lang']) != '' ) { $language = $

How to set language of web page determined by visitor language

匆匆过客 提交于 2019-12-13 00:19:46
问题 Can someone tell me how to set language of a web page on the knowledge of IP address of visitor so that he automatically gets page in his country's language. Of course if that language is implemented by web developer. Even better I sow some examples of automatic Google translation of the text. So how to achieve that visitor from USA gets text on my page in English and visitor from France in French. All that translated by Google from some third original language. Thanks a lot. 回答1: Either:

Using c# to call google translator

冷暖自知 提交于 2019-12-12 21:47:20
问题 I have to write some C# code which will enable me to translate a text file saved on my computer, using Google Translator. I want to write code to do this, but i am not sure where to start. I am new to this topic, but I think i have to download Google Translator API, but I'm not sure where to download this from. Please help me with this problem. 回答1: There is actually an open source project hosted on CodePlex named "Free language translator and file converter" Here is the link: http:/

.po file for default cakephp libs translations

本小妞迷上赌 提交于 2019-12-12 18:26:21
问题 How to add the translations for cakephp libs files to by default.po file for example - months name - day's name - timeAgoInWords i try to add strings to default.po manually but everytime i update it from default.pot (using poedit) the strings are gone. please help me to solve it it will fine to find solution by using separate .po file 回答1: i solve it - create /app/views/dummy.ctp - duplicate by coping the translation from cake\libs\view\helpers\time.ctp to dummy.ctp - and cake i18n will add

Django i18n setlang view gives Error 404

孤人 提交于 2019-12-12 16:05:58
问题 I am trying to translate a django app using the built in i18n. I have already marked the text to be translated and created and compiled the language files ( .po/.mo ) according to the tutorial and with out errors. I've also changed the USE_I18N to true in the settings file and added the following line into the urls.py as the tutorial instructed: (r'^i18n/', include('django.conf.urls.i18n')), I also defined a list of allowed languages in the settings.py, as instructed by the tutorial. then i