All Questions

115
votes
1answers
45159 views

Is there any git hook for pull?

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?
15
votes
3answers
20494 views

Complete C++ i18n gettext() "hello world" example

I am looking for a complete i18n gettext() hello world example. I have started a script based upon A tutorial on Native Language Support using GNU gettext by G. Mohanty. I am using Linux and G++. Cod...
21
votes
3answers
12118 views

PHP Localization Best Practices? gettext?

We are in the process of making our website international, allowing multiple languages. I've looked into php's "gettext" however, if I understand it right, I see a big flaw: If my webpage has let's ...
3
votes
5answers
27252 views

Method getText() must be called from the UI Thread (Android Studio)

I'm trying to create a login for an application. However I have a problem. This is my code: package com.forgetmenot.loginregister; import java.util.ArrayList; import java.util.List; import org.ap...
17
votes
2answers
11370 views

PHP/Gettext Problems

I remember running some tests a some months ago with gettext and the following code worked perfectly: putenv('LANG=l33t'); putenv('LANGUAGE=l33t'); putenv('LC_MESSAGES=l33t'); if (defined('LC_MESSAG...
5
votes
2answers
2060 views

i18n with gettext but without the locale hassle?

I am looking for a standards-compliant way to store multi-language content for a Web Application. Until now, I have employed my own "translate()" functions that read data from a file or a dictionary t...
4
votes
3answers
2298 views

PHP Localization Question

I'm building a Open Source product and I thinking about Localization, I've read about gettext but there seems to be a lot of problem to get it to work in different systems (servers,os etc). How would...
27
votes
7answers
25743 views

Translation in JavaScript like gettext in PHP?

I am using gettext in my PHP code, but I have a big problem. All my JavaScript files are not affected by the translation, can somebody tell me an easy way to get the translations in the chosen languag...
8
votes
1answers
1337 views

Internationalising sentences with two plural words

Using gettext how should a sentence with multiple numeric variables be made translatable? ngettext only takes one number as the plural parameter. The permutations that should be allowed in the below ...
8
votes
2answers
561 views

Can you "dumb down" ES6 template strings to normal strings?

I have to work around the limitation of gettext to recognise ES6 template strings, and I thought about getting the "non interpolated value" of the template strings as a compilation step, in order to h...

Previous Next