Questions tagged [Gettext] (20)

1
answer

Why doesn't gettext on windows?

Hello, Trying to do website translation with gettext, but nothing happens. My code:private function setLocale() { echo '$_SESSION[\'lang\']=' . $_SESSION['lang'] . '<br>'; echo setlocale(LC_ALL, ['English', 'en', $_SESSION['lang'], $_SESSION['lang'] . '.utf8', $_SESSION['lang'] . '.utf-8', $_SESSION['lang'] . '.UTF8...
Murl asked March 24th 20 at 10:49
1
answer

How to use localization package python in Django project?

Good day! In your Django project set up localization, which is working fine. There are also I have written a Python package utils helper functions, it has the local folder with the translations strings for this package, I use them in the Django project via import, install the package via pip. since this package is not a Dja...
4
answers

How to write sites for 2 or more languages?

Have to start writing the website. The interface will be in both English and Russian. Would like to know how to correctly implement the transfer of the site (buttons, thingies, menus, links, headings, tables, forms). So that would not make a fuss for 2 or more set of templates for each language. While that is inclined to ex...
joaquin.Wate asked October 10th 19 at 14:15
1
answer

Gettext — how to deal with matching keys (general: General/General)?

Good afternoon. Puzzled with the choice of the translation system for a site in Django. It is already built gettext, it seems to be all good, but here's the problem — some different words in Russian corresponds to one word in English. For example: General/General (general). What can you do? How to add any "shortcut keys" to...
2
answers

Russification in templates Smarty, gettext

In General, in the Wake of this theme habrahabr.ru/post/115300/ there is a problem, the following lines: <{t}>in order to access subscribe <a href="/pay">draw </a><{/t}> Then the link tag will be printed as plain text, not a tag, how to be? Ie, a simple question: how to write HTML tags inside the ta...
eda.F asked October 3rd 19 at 07:19
1
answer

Is there a system that generalizes the translation of mobile applications?

Hello. There is a program on multiple platforms, and should be in different languages. And here actually a question: is there a way to KEEP String Resources Android and iOS g-string in ONE format (e.g. PO), which is: 1. you can give the translator (key : value table) 2. the vision is this: pressed the button and all of thes...
caterina.Emard61 asked September 26th 19 at 13:06
1
answer

How to tie Gettext to the Twig templates in Yii 2?

Hello, Tell me how screwed localization using Gettext for Twig templates in Yii 2? Installed it via composer yiisoft/yii2-app-basic, added yiisoft/yii2-twig. Added in config:'view' => [ 'renderers' => [ 'twig' => [ 'class' => 'yii\twig\ViewRenderer', 'extensions' => [ 'Twig_Extensions_Extension_I18n' ], ]...
Rebeca.Tillm asked September 24th 19 at 22:18
1
answer

How to edit .po files on the website?

Hello! Now I translate with the help of the notorious program poEdit, but is there a way to create and update the translation directly from the website using PHP? Is there any good classes for this line of work? Although I googled and never seen anything like it, all refer to poEdit...
alfonzo.Zeml asked September 23rd 19 at 10:20
2
answers

Gettext or ini?

Hello! Puzzled by the question that it would be better to use application - gettext or ini?
alfonzo.Zeml asked September 20th 19 at 20:56
0
answer

Yii2: Translations in po files from different sources. How?

I have two source translations @backend @common/models I gather the translations in one place? Please do not offer to host the translations , I do not fit. I have separately in @backend translations of @backend and @common/models transfers from and @common/models Due to the fact that one and the same entity may be called...
dimitri_Cass asked September 9th 19 at 18:34