Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalize text strings #4

Open
Facyla opened this issue Jun 10, 2014 · 0 comments
Open

Internationalize text strings #4

Facyla opened this issue Jun 10, 2014 · 0 comments

Comments

@Facyla
Copy link
Member

Facyla commented Jun 10, 2014

Having the ability to easily translate the app into another language would be great for a wider use of the templates.
An easy way i'd suggest to do so is to make translation available through an indexed array (one per language), the call the corresponding translation for a given key.
E.g.:
$en = array('citadel:poi' => "CITADEL POI", 'citadel:app:title' => "CITADEL app title");
then call :
$en['citadel:poi'] to get the corresponding translation.

We can also make use of printf() for more complex templating (e.g. using variables into translations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants