Revision history for WikkaGettext


Revision [23165]

Last edited on 2016-05-20 07:38:47 by DotMG [Replaces old-style internal links with new pipe-split links.]
Additions:
In order to improve the I18N of Wikka, it could be a good idea to add support for different interface translations. The best way to handle this kind of translations is using [[http://www.gnu.org/software/gettext/ | gettext]] which is a mature, widely used (wordpress, phpwiki) localization framework. It is pretty much the defacto standard in the open source/free software realm.
**[[http://ettin.org/vault/wikka/wikka-1.1.5.3-gettext.tar.gz | wikka-1.1.5.3-gettext.tar.gz]]** (140k) Updated on October 6, 2004
$here = $this->Format('[[PasswordForgotten | '._("here").']]');
Deletions:
In order to improve the I18N of Wikka, it could be a good idea to add support for different interface translations. The best way to handle this kind of translations is using [[http://www.gnu.org/software/gettext/ gettext]] which is a mature, widely used (wordpress, phpwiki) localization framework. It is pretty much the defacto standard in the open source/free software realm.
**[[http://ettin.org/vault/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (140k) Updated on October 6, 2004
$here = $this->Format('[[PasswordForgotten '._("here").']]');


Revision [19050]

Edited on 2008-01-28 00:14:01 by DotMG [Modified links pointing to docs server]

No Differences

Revision [16163]

Edited on 2007-02-20 00:28:14 by DotMG [Presenting PHP-Gettext, for those who don't have gettext support.]
Additions:
==Php Gettext, a class that can read directly mo files==
At http://savannah.nongnu.org/projects/php-gettext/ , you can find a class consisting of 2 files that can read mo files even if you don't have gettext support installed. It doesn't require anything other than PHP, and its size is absolutely small. I (-- DotMG --) was not a fan of Gettext until I found this class. It is GPL-licensed.


Revision [8617]

Edited on 2005-05-28 17:53:17 by JavaWoman [move to subcategory]
Additions:
In order to improve the I18N of Wikka, it could be a good idea to add support for different interface translations. The best way to handle this kind of translations is using [[http://www.gnu.org/software/gettext/ gettext]] which is a mature, widely used (wordpress, phpwiki) localization framework. It is pretty much the defacto standard in the open source/free software realm.

==Download==
You can download the testing package with gettext support, some directories have been removed in order to reduce the file size.
It should be installed like the normal Wikka, the only additional option in the setup process is the language selection. There are 2 languages available right now: Catalan and English. You can try to install it in catalan to see that the final result is a Wikka site, but in catalan (there are some missing strings).

**[[http://ettin.org/vault/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (140k) Updated on October 6, 2004

==Tasks==
1) gettext support -- done
1) different domains (wikka and wikka-setup) -- done
1) locale selection from the installer -- done
1) script to update po files -- done
1) make strings translatable -- 142 strings **so far**
~- wikka.pot: 101 strings
~- wikka-setup.pot: 41 strings

==Known problems==
**Hardcoded ""WikiPages""**
%%
actions/textsearch.php:22 TextSearchExpand
actions/footer.php:3 TextSearch
actions/usersettings.php:118 MyPages
actions/usersettings.php:119 MyChanges
actions/category.php:8 Category Category
%%
If we want to let users choose their preferred language from usersettings, we can't translate hardcoded ""WikiPages"". These are always the same, since they are on the database and were translated in the setup process. Possible solutions:
~- Do not translate page tags.
~- Add these hardcoded pages to the config file with their respective name, so that we can use $config["""MyPages"""] instead of ""MyPages"".

==FAQ==
**How to make strings translatable with gettext?**
It is simple, just use the ##_()## or ##gettext()## function.

Example (simple):
%%(php)
<?php
print(_("Hello Wikka!"));
?>
%%
Example (formatted):
%%(php)
<?php
$here = $this->Format('[[PasswordForgotten '._("here").']]');
printf(_("If you need a temporary password, click %s."), $here);
?>
%%

**What do we gain with gettext?**
~- automatic detection of outdated translation strings
~- standard framework so that existing translation teams can work on wikka at no cost

==Categories==
CategoryDevelopmentI18n
Deletions:
In order to improve the I18N of Wikka, it could be a good idea to add support for different interface translations. The best way to handle this kind of translations is using [[http://www.gnu.org/software/gettext/ gettext]] which is a mature, widely used (wordpress, phpwiki) localization framework. It is pretty much the defacto standard in the open source/free software realm.

==Download==
You can download the testing package with gettext support, some directories have been removed in order to reduce the file size.
It should be installed like the normal Wikka, the only additional option in the setup process is the language selection. There are 2 languages available right now: Catalan and English. You can try to install it in catalan to see that the final result is a Wikka site, but in catalan (there are some missing strings).

**[[http://ettin.org/vault/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (140k) Updated on October 6, 2004

==Tasks==
1) gettext support -- done
1) different domains (wikka and wikka-setup) -- done
1) locale selection from the installer -- done
1) script to update po files -- done
1) make strings translatable -- 142 strings **so far**
~- wikka.pot: 101 strings
~- wikka-setup.pot: 41 strings

==Known problems==
**Hardcoded ""WikiPages""**
%%
actions/textsearch.php:22 TextSearchExpand
actions/footer.php:3 TextSearch
actions/usersettings.php:118 MyPages
actions/usersettings.php:119 MyChanges
actions/category.php:8 Category Category
%%
If we want to let users choose their preferred language from usersettings, we can't translate hardcoded ""WikiPages"". These are always the same, since they are on the database and were translated in the setup process. Possible solutions:
~- Do not translate page tags.
~- Add these hardcoded pages to the config file with their respective name, so that we can use $config["""MyPages"""] instead of ""MyPages"".

==FAQ==
**How to make strings translatable with gettext?**
It is simple, just use the ##_()## or ##gettext()## function.

Example (simple):
%%(php)
<?php
print(_("Hello Wikka!"));
?>
%%
Example (formatted):
%%(php)
<?php
$here = $this->Format('[[PasswordForgotten '._("here").']]');
printf(_("If you need a temporary password, click %s."), $here);
?>
%%

**What do we gain with gettext?**
~- automatic detection of outdated translation strings
~- standard framework so that existing translation teams can work on wikka at no cost

==Categories==
CategoryDevelopment


Revision [2175]

Edited on 2004-11-12 19:52:40 by JordaPolo [Added introduction]
Additions:
In order to improve the I18N of Wikka, it could be a good idea to add support for different interface translations. The best way to handle this kind of translations is using [[http://www.gnu.org/software/gettext/ gettext]] which is a mature, widely used (wordpress, phpwiki) localization framework. It is pretty much the defacto standard in the open source/free software realm.


Revision [2173]

Edited on 2004-11-12 19:43:35 by JordaPolo [Updated download URL]
Additions:
**[[http://ettin.org/vault/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (140k) Updated on October 6, 2004
Deletions:
**[[http://ettin.org/projects/wikka/wikka-1.1.5.3-gettext_2.tar.gz wikka-1.1.5.3-gettext_2.tar.gz]]** (140k) Updated on October 6, 2004


Revision [1818]

Edited on 2004-10-12 07:13:16 by JordaPolo [Removed available translations]
Deletions:
==Status==
**Available translations**
- Catalan (128/142)
- Spanish (2/142)


Revision [1759]

Edited on 2004-10-08 17:08:03 by JordaPolo [Removed available translations]
Additions:
actions/category.php:8 Category Category
Deletions:
actions/category.php:8 ""CategoryCategory""


Revision [1758]

Edited on 2004-10-08 17:07:19 by JordaPolo [Removed available translations]
Additions:
actions/category.php:8 ""CategoryCategory""
Deletions:
actions/category.php:8 CategoryCategory


Revision [1694]

Edited on 2004-10-06 16:18:56 by JordaPolo [Released gettext package 2]
Additions:
**[[http://ettin.org/projects/wikka/wikka-1.1.5.3-gettext_2.tar.gz wikka-1.1.5.3-gettext_2.tar.gz]]** (140k) Updated on October 6, 2004
actions/footer.php:3 TextSearch
Deletions:
**[[http://ettin.org/projects/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (135k)
actions/footer.php:3 TextSearchExpand


Revision [1687]

Edited on 2004-10-06 16:00:21 by JordaPolo [Updated status. Added known problems. Updated FAQ.]
Additions:
==Tasks==
1) make strings translatable -- 142 strings **so far**
~- wikka.pot: 101 strings
- Catalan (128/142)
- Spanish (2/142)
==Known problems==
**Hardcoded ""WikiPages""**
actions/textsearch.php:22 TextSearchExpand
actions/footer.php:3 TextSearchExpand
actions/usersettings.php:118 MyPages
actions/usersettings.php:119 MyChanges
actions/category.php:8 CategoryCategory
If we want to let users choose their preferred language from usersettings, we can't translate hardcoded ""WikiPages"". These are always the same, since they are on the database and were translated in the setup process. Possible solutions:
~- Do not translate page tags.
~- Add these hardcoded pages to the config file with their respective name, so that we can use $config["""MyPages"""] instead of ""MyPages"".
**What do we gain with gettext?**
~- automatic detection of outdated translation strings
~- standard framework so that existing translation teams can work on wikka at no cost
==Categories==
Deletions:
==Jobs==
1) make strings translatable -- 123 strings **so far**
~- wikka.pot: 82 strings
- Catalan (122/123)
- Spanish (2/123)


Revision [1680]

Edited on 2004-10-06 08:01:53 by JordaPolo [Updated status]
Additions:
- Catalan (122/123)
Deletions:
- Catalan (119/123)


Revision [1627]

Edited on 2004-10-04 21:14:30 by JordaPolo [Updated layout]
Additions:
**[[http://ettin.org/projects/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (135k)
Deletions:
The gettext support only requires some minor code changes (3 lines of code).
- **[[http://ettin.org/projects/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (135k)


Revision [1626]

Edited on 2004-10-04 19:50:20 by JordaPolo [Added downloads]
Additions:
1) make strings translatable -- 123 strings **so far**
==Download==
You can download the testing package with gettext support, some directories have been removed in order to reduce the file size.
It should be installed like the normal Wikka, the only additional option in the setup process is the language selection. There are 2 languages available right now: Catalan and English. You can try to install it in catalan to see that the final result is a Wikka site, but in catalan (there are some missing strings).
- **[[http://ettin.org/projects/wikka/wikka-1.1.5.3-gettext.tar.gz wikka-1.1.5.3-gettext.tar.gz]]** (135k)
- Catalan (119/123)
Deletions:
1) make strings translatable -- 123 strings so far
- Catalan (120/123)


Revision [1625]

Edited on 2004-10-04 19:15:54 by JordaPolo [Updated status]
Additions:
- Catalan (120/123)
Deletions:
- Catalan (102/123)


Revision [1624]

Edited on 2004-10-04 18:57:42 by JordaPolo [Updated status]
Additions:
1) make strings translatable -- 123 strings so far
~- wikka.pot: 82 strings
~- wikka-setup.pot: 41 strings
- Catalan (102/123)
- Spanish (2/123)
Deletions:
1) make strings translatable -- 115 strings so far
- Catalan (83/115)
- Spanish (2/115)


Revision [1598]

Edited on 2004-10-04 09:17:13 by NilsLindenberg [Category added]
Additions:
CategoryDevelopment
Deletions:
%%


Revision [1562]

Edited on 2004-10-03 20:41:57 by JordaPolo [Updated status]
Additions:
1) make strings translatable -- 115 strings so far
- Catalan (83/115)
- Spanish (2/115)
Deletions:
1) make strings translatable -- 85 strings so far
- Catalan (83/85)
- Spanish (2/85)


Revision [1551]

Edited on 2004-10-03 20:17:59 by JordaPolo [Updated status]
Additions:
The gettext support only requires some minor code changes (3 lines of code).
==Jobs==
1) gettext support -- done
1) different domains (wikka and wikka-setup) -- done
1) locale selection from the installer -- done
1) script to update po files -- done
1) make strings translatable -- 85 strings so far
- Catalan (83/85)
- Spanish (2/85)
Deletions:
The first stage of the gettext support for Wikka 1.1.5.3 is almost finished.
The gettext support only requires some minor changes (3 lines of code).
The second stage includes locale selection from the installer, and fully translatable default wikka pages (such as HomePage, FormattingRules, PageIndex...).
83 strings have been made translatable so far.
- Catalan (83/83)
- Spanish (2/83)


Revision [1542]

Edited on 2004-10-03 19:00:33 by JordaPolo [Updated status]
Additions:
The second stage includes locale selection from the installer, and fully translatable default wikka pages (such as HomePage, FormattingRules, PageIndex...).
Deletions:
The second stage includes locale selection from the installer, and default pages 100% translatable (including WikiNames).


Revision [1541]

Edited on 2004-10-03 18:58:51 by JordaPolo [Updated status]
Additions:
The first stage of the gettext support for Wikka 1.1.5.3 is almost finished.
The gettext support only requires some minor changes (3 lines of code).
Deletions:
The first stage of the gettext support for Wikka 1.1.5.3 is almost finished. The gettext support only requires some minor changes (3 lines of code).


Revision [1540]

Edited on 2004-10-03 18:58:31 by JordaPolo [Updated status]
Deletions:
==WikkaGettext==


Revision [1539]

Edited on 2004-10-03 18:58:20 by JordaPolo [Updated status]
Additions:
==WikkaGettext==
The first stage of the gettext support for Wikka 1.1.5.3 is almost finished. The gettext support only requires some minor changes (3 lines of code).
The second stage includes locale selection from the installer, and default pages 100% translatable (including WikiNames).
==Status==
==FAQ==
Deletions:
The first stage of the gettext support for Wikka 1.1.5.3 is almost finished, and only requires some minor changes (3 lines of code).


Revision [1538]

Edited on 2004-10-03 18:54:55 by JordaPolo [Updated status]
Additions:
**Available translations**
- Catalan (83/83)
- Spanish (2/83)
**How to make strings translatable with gettext?**
Deletions:
==How to make strings translatable with gettext?==


Revision [1536]

Edited on 2004-10-03 18:51:35 by JordaPolo [Updated status]
Additions:
The first stage of the gettext support for Wikka 1.1.5.3 is almost finished, and only requires some minor changes (3 lines of code).
83 strings have been made translatable so far.


Revision [1531]

Edited on 2004-10-03 13:13:58 by JordaPolo [Updated status]
Additions:
Example (simple):
%%(php)
Example (formatted):
%%(php)
$here = $this->Format('[[PasswordForgotten '._("here").']]');
printf(_("If you need a temporary password, click %s."), $here);
Deletions:
Example:


Revision [1529]

The oldest known version of this page was created on 2004-10-03 10:09:10 by JordaPolo [Updated status]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki