gettext Questions

2

Solved

So I have been trialling Weblate using Docker, and pointing it at a Git repo with some .md files I want to localize. I believe a good way of doing this is to use po4a to first convert the .md (basi...
Nitrometer asked 10/1, 2020 at 11:52

3

I have been running into an issue setting up locales for my Django app. When I run the django-admin's makemessages command no resulting .po files show up in my {project_root}/locales folder. Here a...
Soni asked 19/1, 2024 at 14:43

11

Solved

I am trying to translate a string. {% load i18n %} {% trans "Well, Hello there, how are you?" %} to... Hola amigo, ¿que tal? My settings.py file has this: LOCALE_PATHS = ( os.path.join(BASE...
Aksoyn asked 28/4, 2014 at 23:49

4

I want to use django i18n support to translate my javascript files. I have the following javascript file: var test_text = gettext('example'); @withStyles(styles) export default class HomePage { ...
Tactual asked 4/9, 2015 at 17:30

8

Solved

Having started off with an incomplete gettext .pot file, the resulting .po translations file now includes a large number of translation strings that were not originally in the .pot file. How can I...
Houseroom asked 9/5, 2011 at 15:12

1

Doing i18n work with Python using Jinja2 and Pyramid. Seems to have a problem knowing how it should translate %%. I'm beginning to suspect the bug is in Jinja2. So I've done some more investigat...
Nudibranch asked 18/1, 2017 at 22:41

12

Solved

We're getting ready to translate our PHP website into various languages, and the gettext support in PHP looks like the way to go. All the tutorials I see recommend using the english text as the me...
Valerievalerio asked 19/10, 2008 at 14:28

2

Solved

For example, why authors of "django-cms" keep gettext's mo files in repo (and this is not just inattention, see this commit), if users always can run manage.py compilemessages? Only to save users f...
Casabonne asked 10/9, 2012 at 4:38

6

I installed python separated from yum. Now, I need to recompile the language pack for the OSQA system, but get this message: Error: errors happened while running xgettext on __init__.py xgettext: ....
Inheritance asked 6/12, 2010 at 19:14

4

Solved

The following code is not working from django.utils.translation import gettext_lazy as _ stringtest=_("First string") stringtest= stringtest + _(" Second string") print stringtest I get the fo...
Omphalos asked 17/5, 2014 at 9:28

4

Solved

I have a question about using ugettext and gettext_lazy() for translations. I learned that in models I should use gettext_lazy(), while in views ugettext. But are there any other places, where I sh...
Adham asked 12/11, 2010 at 1:6

10

Solved

When I try to access to my app, I'm getting the following error below: AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you d...
Earldom asked 24/12, 2014 at 0:59

5

How to use gettext in bash script? I only found this page, but I don't understand it. Localization My script is written like this: #!/bin/bash . lang_file.sh echo $LANG_HELLO_WORLD And lan...
Emmyemmye asked 8/2, 2010 at 12:38

3

When using xgettext to generate a .pot file, at the top of the generated file I get this: # SOME DESCRIPTIVE TITLE. ... #, fuzzy ... What does the #, fuzzy mean? I know what it means if a trans...
Arria asked 27/3, 2013 at 6:33

4

Solved

I have the following situation: One product which I want to translate, that has two separate websites, one for admins, one for customers. The codebase is CakePHP. Both sites are completely separat...
Jelene asked 29/10, 2010 at 14:24

4

Solved

I need to perform some actions (prepare gettext *.mo message files) on my project everytime I run git pull. Is there any suitable git hook, which I could use for this purpose please?
Whorehouse asked 15/11, 2010 at 14:41

6

Solved

I already have following [attr]POFILE merge=merge-po-files locale/*.po POFILE in the .gitattributes and I'd like to get merging of branches to work correctly when the same localization file (e....
Formosa asked 25/4, 2013 at 11:55

2

Solved

I have a multi-lingual site that uses Zend_Translate PHP arrays to handle the translations. It works fine, but I'm trying to convert to using gettext since that offers extra features. However, I h...
Withers asked 20/12, 2012 at 20:27

2

I've successfully installed msguniq (can check its version), I've tried to change compatibility to windows xp and run it as administator, but still I'm getting this error: CommandError: Can't fi...
Brinn asked 21/11, 2015 at 9:34

5

I'm trying to translate WP theme. I have this code: $translation = __( get_color(), 'textdomain' ); It works, I get color dynamically from get_color() function, and it translates well. But when ...
Palpitant asked 30/4, 2016 at 15:11

1

Solved

I need to add gettext translation to all the string literals in our code, but it doesn't work with literals in case statements. This failed attempt gives SyntaxError: Expected ':': from gettext imp...
Hollyanne asked 13/5, 2022 at 6:17

4

I'm trying to compile a static Git 2.17.1 on Debian (Windows Subsystem for Linux): $ mkdir _git $ make configure $ ./configure --prefix=$PWD/_git NO_TCLTK=true NO_GETTEXT=true CFLAGS="${CFLAGS} -s...
Viccora asked 11/6, 2018 at 15:6

3

i've been googling for the last hour or so trying to find a complete working example of gettext in php - all source files, po files, with proper paths, etc. Just a "hello world" with all the requir...
Pennoncel asked 31/10, 2010 at 10:59

11

I'm trying to update Git from my shared hosting. For that I'm following these steps: Download latest Git version Unpack and place it on the server Configure and create the Makefile -> ./configure...
Sheepshanks asked 29/2, 2012 at 14:28

3

Solved

I've encountered a strange problem when translating strings (in the admin) using django's gettext: Locally running the dev server all translations are displayed correctly in the admin, but when the...
Monogram asked 4/11, 2010 at 23:57

© 2022 - 2025 — McMap. All rights reserved.