[web2py] Re: contribute in indonesian language translate

2013-04-06 Thread Massimo Di Pierro
You may have to restart web2py for that to work. Plural rules are cached. 
It should otherwise work.
Anyway, you can a translation file without a pluralization rules file.
Thanks for your contribution. Look forward to see the indonesian 
translation.

On Friday, 5 April 2013 20:06:48 UTC-5, 黄祥 wrote:
>
> hi,
>
> is it possible for me to contribute in indonesian language translate?
> i'm trying to create new file in languages name : id.py in my application 
> after that i've define  :
>
> *gluon/contrib/plural_rules/id.py*
> #!/usr/bin/env python
> # -*- coding: utf8 -*-
> # Plural-Forms for id (Indonesian)
>
> nplurals=2  # Indonesian language has 2 forms:
> # 1 singular and 1 plural
>
> # Determine plural_id for number *n* as sequence of positive
> # integers: 0,1,...
> # NOTE! For singular form ALWAYS return plural_id = 0
> get_plural_id = lambda n: int(n != 1)
>
> # Construct and return plural form of *word* using
> # *plural_id* (which ALWAYS>0). This function will be executed
> # for words (or phrases) not found in plural_dict dictionary
> # construct_plural_form = lambda word, plural_id: (word + 'suffix')
>
> but i still got :
> ( Plural-Forms: rules are not defined (file *
> gluon/contrib/plural_rules/id.py* is not found) )
>
> what should i do to define the rules?
>
> another question is i compare the the new id.py file that i've created in 
> my application have different parameter like the others language files that 
> web2py have been provided for example :
> !=
> %(nrows)s records found
> %d seconds ago*
> *
> , etc
> *
> *
> is it crucial or not? or i must copy manual from the language folder and 
> translate it one by one (not via web browser)?
> after that how can i share the translate id.py file?
>
> thank you so much for the advise.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: contribute in indonesian language translate

2013-04-06 Thread Massimo Di Pierro
You missed 2.4.6 for a few hours I will post is shortly. Thanks.

Massimo

On Saturday, 6 April 2013 16:29:35 UTC-5, 黄祥 wrote:
>
> it's worked fine now, thank you so much for your advised mashimo.
> please find attached files about indonesian language translate 
> (gluon/contrib/plural_rules/id.py and languages/id.py). already tested in 
> new scaffolding apps and my current apps.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: contribute in indonesian language translate

2013-04-06 Thread 黄祥
no worries, should i commit it into github or just send you the files? i 
have malay language translation too, and right now i'm working on japanese 
language translation.
thank you so much

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: contribute in indonesian language translate

2013-04-07 Thread Massimo Di Pierro
It you could post a path on google code or a pull request on github it 
sould be best so there is a record and I will not forget.

On Saturday, 6 April 2013 23:16:29 UTC-5, 黄祥 wrote:
>
> no worries, should i commit it into github or just send you the files? i 
> have malay language translation too, and right now i'm working on japanese 
> language translation.
> thank you so much
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: contribute in indonesian language translate

2013-04-07 Thread 黄祥
what do you mean about post a path on google code?
for github i've already forked the web2py in https://github.com and take 
these step, but the commit history is not update on https://github.com, is 
there something i've missed in my step?

*git clone https://github.com/sugizo/web2py.git*
*cd web2py/*
*git remote add upstream https://github.com/web2py/web2py.git*
*git fetch upstream*
remote: Counting objects: 37, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 27 (delta 16), reused 25 (delta 14)
Unpacking objects: 100% (27/27), done.
>From https://github.com/web2py/web2py
 * [new branch]  master -> upstream/master
 * [new tag] R-2.4.5-> R-2.4.5
 * [new tag] R-2.4.6-> R-2.4.6
*git push origin master*
error: The requested URL returned error: 403 while accessing 
https://github.com/sugizo/web2py.git/info/refs

fatal: HTTP request failed
*git add applications/admin/languages/id.py*
*git add applications/admin/languages/my.py*
*git add applications/welcome/languages/id.py*
*git add applications/welcome/languages/my.py*
*git commit -m "Add Indonesian and Malay Languages for Admin and Welcome"*
[master b039b56] Add Indonesian and Malay Languages for Admin and Welcome
 Committer: stifank 
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

git config --global user.name "Your Name"
git config --global user.email y...@example.com

If the identity used for this commit is wrong, you can fix it with:

git commit --amend --author='Your Name '

 4 files changed, 796 insertions(+), 0 deletions(-)
 create mode 100755 applications/admin/languages/id.py
 create mode 100755 applications/admin/languages/my.py
 create mode 100755 applications/welcome/languages/id.py
 create mode 100755 applications/welcome/languages/my.py
*git branch*
* master
*git checkout*
Your branch is ahead of 'origin/master' by 1 commit.
*git diff*
*git show*
*git status*
*git log*

commit b039b564e941d2ca6fc08323354808193a89ac47
Author: stifank 
Date:   Mon Apr 8 08:54:44 2013 +0700

Add Indonesian and Malay Languages for Admin and Welcome

commit aca3d43f0a92074d8dba45448946096ed016fdb6
Author: mdipierro 
Date:   Sat Apr 6 12:12:32 2013 -0500

R-2.4.6

*git show*
commit b039b564e941d2ca6fc08323354808193a89ac47
Author: stifank 
Date:   Mon Apr 8 08:54:44 2013 +0700

Add Indonesian and Malay Languages for Admin and Welcome

diff --git a/applications/admin/languages/id.py 
b/applications/admin/languages/i
new file mode 100755
index 000..cef371e
--- /dev/null
+++ b/applications/admin/languages/id.py
@@ -0,0 +1,204 @@
+# coding: utf8
+{
+'!langcode!': 'id',
+'!langname!': 'Indonesian',
+'%s %%{row} deleted': '%s %%{row} dihapus',
+'%s %%{row} updated': '%s %%{row} diperbarui',
+'%s selected': '%s dipilih',
+'%Y-%m-%d': '%d-%m-%Y',
+'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S',
+'< Previous': '< Sebelumnya',
+'About': 'Tentang',

* git status*
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: contribute in indonesian language translate

2013-04-07 Thread Massimo Di Pierro
I cannot find these in your github fork:
*git add applications/admin/languages/id.py*
*git add applications/admin/languages/my.py*
*git add applications/welcome/languages/id.py*
*git add applications/welcome/languages/my.py*
*
*
*Can you email them to as attachements?*

On Sunday, 7 April 2013 21:04:36 UTC-5, 黄祥 wrote:
>
> what do you mean about post a path on google code?
> for github i've already forked the web2py in https://github.com and take 
> these step, but the commit history is not update on https://github.com, 
> is there something i've missed in my step?
>
> *git clone https://github.com/sugizo/web2py.git*
> *cd web2py/*
> *git remote add upstream https://github.com/web2py/web2py.git*
> *git fetch upstream*
> remote: Counting objects: 37, done.
> remote: Compressing objects: 100% (13/13), done.
> remote: Total 27 (delta 16), reused 25 (delta 14)
> Unpacking objects: 100% (27/27), done.
> From https://github.com/web2py/web2py
>  * [new branch]  master -> upstream/master
>  * [new tag] R-2.4.5-> R-2.4.5
>  * [new tag] R-2.4.6-> R-2.4.6
> *git push origin master*
> error: The requested URL returned error: 403 while accessing 
> https://github.com/sugizo/web2py.git/info/refs
>
> fatal: HTTP request failed
> *git add applications/admin/languages/id.py*
> *git add applications/admin/languages/my.py*
> *git add applications/welcome/languages/id.py*
> *git add applications/welcome/languages/my.py*
> *git commit -m "Add Indonesian and Malay Languages for Admin and Welcome"*
> [master b039b56] Add Indonesian and Malay Languages for Admin and Welcome
>  Committer: stifank >
> Your name and email address were configured automatically based
> on your username and hostname. Please check that they are accurate.
> You can suppress this message by setting them explicitly:
>
> git config --global user.name "Your Name"
> git config --global user.email y...@example.com 
>
> If the identity used for this commit is wrong, you can fix it with:
>
> git commit --amend --author='Your Name 
> >'
>
>  4 files changed, 796 insertions(+), 0 deletions(-)
>  create mode 100755 applications/admin/languages/id.py
>  create mode 100755 applications/admin/languages/my.py
>  create mode 100755 applications/welcome/languages/id.py
>  create mode 100755 applications/welcome/languages/my.py
> *git branch*
> * master
> *git checkout*
> Your branch is ahead of 'origin/master' by 1 commit.
> *git diff*
> *git show*
> *git status*
> *git log*
>
> commit b039b564e941d2ca6fc08323354808193a89ac47
> Author: stifank >
> Date:   Mon Apr 8 08:54:44 2013 +0700
>
> Add Indonesian and Malay Languages for Admin and Welcome
>
> commit aca3d43f0a92074d8dba45448946096ed016fdb6
> Author: mdipierro >
> Date:   Sat Apr 6 12:12:32 2013 -0500
>
> R-2.4.6
>
> *git show*
> commit b039b564e941d2ca6fc08323354808193a89ac47
> Author: stifank >
> Date:   Mon Apr 8 08:54:44 2013 +0700
>
> Add Indonesian and Malay Languages for Admin and Welcome
>
> diff --git a/applications/admin/languages/id.py 
> b/applications/admin/languages/i
> new file mode 100755
> index 000..cef371e
> --- /dev/null
> +++ b/applications/admin/languages/id.py
> @@ -0,0 +1,204 @@
> +# coding: utf8
> +{
> +'!langcode!': 'id',
> +'!langname!': 'Indonesian',
> +'%s %%{row} deleted': '%s %%{row} dihapus',
> +'%s %%{row} updated': '%s %%{row} diperbarui',
> +'%s selected': '%s dipilih',
> +'%Y-%m-%d': '%d-%m-%Y',
> +'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S',
> +'< Previous': '< Sebelumnya',
> +'About': 'Tentang',
>
> * git status*
> # On branch master
> # Your branch is ahead of 'origin/master' by 1 commit.
> #
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: contribute in indonesian language translate

2013-04-08 Thread Massimo Di Pierro
Thank you. This is now in trunk. Mind that the translation files contain 
some string from your app that do not belong to the welcome app. Perhaps 
they should be removed.

On Sunday, 7 April 2013 23:30:13 UTC-5, 黄祥 wrote:
>
> yes, me too, i can't find it. although when i checked the log it said 
> already commited.
> btw, please find attached file (id.py for indonesian and my.py for malay)
> thank you very much
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.