9/18/2023 0 Comments Online poedit![]() ![]() Translations are applied if that content is marked for translation, and if there is a matching translation entry (see Tagging text that is inserted by a script). OL Connect will apply translations to that content at the moment it is added to the template, for example with the html() or replaceWith() function. Personalization scripts may add content to the output. Translating content that is inserted by a script Snippets get translated when they are inserted in the output, if the text is tagged for translation (see Tagging text in snippets). Set the template's Locale, or select the field that contains a Locale value, in order to get output in the correct language. Or, if you work with a translator or translation agency, send them the. Poedit), translate the texts and/or enter the (text with) plurals. See Exporting a file for translation (.pot). Optional: enable the pluralization option on any translation entry that should conform with the number in a certain data field see Pluralization.Įxport the entries on the Translations pane to a. To make use of the built-in translation feature, take the following steps. It is also possible to use snippets or separate sections for translation purposes in combination with scripts. It is less suitable for long texts like insurance policies or terms and conditions.įor longer texts it is recommended to use a content management system in combination with scripts. The built-in translation feature is easy to use for labels and short texts in for instance invoices, web forms, transaction email messages, and pack lists. These file types are widely used in translation software, so you can team up with a professional translator or translation agency to translate your templates, or you can do it yourself using a free online tool, such as the Poedit software. (See: Exporting and importing translation files.) po file has an entry by which OL Connect recognizes the target language. po file holds translated texts for one language. (A template's language can be set via the Locale Settings dialog.)Ī. In OL Connect this is the language in which the template was originally written. The file contains a list of texts in the base language. pot file is exported from the Translations pane in the Designer. They can be made in any translation tool that accepts a. ![]() The files that hold the actual translations are not made in the Designer. Each file gives translations in one language. ![]() If there is one, OL Connect uses it to localize any elements that are tagged for translation, and to pluralize words as indicated.įor this feature to work, a template needs to have:Ĭontent that is tagged for translation (see: Tagging elements for translation) and, optionally, pluralization (see Pluralization). When OL Connect generates output or creates a preview for a template, it looks for a translation file that matches the current Locale. Then you only have to do is translate found strings.OL Connect has a built-in feature to automatically generate output and previews from one template in different languages, and to pluralize certain words in the output. ![]() Next open Edit -> Preferences and in Processing programs tab, edit PHP section and add *.phtml extension (this will be scanned by poedit also)Īfter that you have to click in Update button and PoEdit will start scan your sources for strings to translate.Then go to Source of keywords tab and add translate and if you're using zf2 forms it is useful to add addLabel keyword (PoEdit will scan sources for this functions and add string parameters from them to your *.po file, as string to translate).If you have typical zf2 skeleton application folder structure you can add. More universal is to use relative to opened *.po file main path. Add paths where PoEdit should look for source files in Your applilcation.Go to Catalog -> Properties then to Source Paths tab.First of all, open *.po file which you want update with strings to.If you will done that correct PoEdit automatically update what to translate in this opened *.po file. You can configure your project (*.po file) opened in PoEdit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |