OsTicket-Reloaded/OsTicket

translation to Chinese

coolbq opened this issue · 17 comments

Hi, I'm thinking to localize osticket reloaded to Simplified Chinese and Traditional Chinese these days.
I downloaded the source and uploaded to my webspace but didn't know where to start.
Could you pls guide me how to start the work?

First of all thank you for contributing!! Chinese will be an awesome asset to osTicket Reloaded. Allow me to explain a few things:

In the folder translate/ you will find several folders for all languages. Create a new one. The title should be the ISO code for China. I believe it it cn. In that folder you put a copy of the US English translate.php. That file you then have to edit to replace all USA English translations with the Chinese ones.
If you create one translate.php for "regular" Chinese and one for simplified Chinese you would need two folders. But the Language ISO codes I do not know by heart. Please look them up in Wikipedia.
Once all is done you can make a push request to upload it all. This does require working with Git. On Github there are tutorials to guide you.
If you get stuck somewhere just post here again and we will help out!

Sent from my iPhone

On 7 Sep 2012, at 10:30, coolbq notifications@github.com wrote:

Hi, I'm thinking to localize osticket reloaded to Simplified Chinese and Traditional Chinese these days.
I downloaded the source and uploaded to my webspace but didn't know where to start.
Could you pls guide me how to start the work?


Reply to this email directly or view it on GitHub.

As my experience tells me that people use zh-cn for Simplified Chinese and zh-tw for Traditional Chinese.
I dont know which ISO standard you did this according to.
Maybe I need to translate the language file first, after that, to seek for ways to make it working.

Yeah, just work on the translations first please. We can add the zh-tw and zh-cn folder when all is done. Also added you to the translators team.

Hi, I've done the translation for Simplified Chinese now. I'm wonderring how to upload it here?

I tried to upload it to my server and apply it. But find two problems:
1, though all phrases in the language file are translated, some of the phrases still display in English;
2, my browser parses the page in UNICODE, but it displays a mass. After I CHANGE the parsing character code to GB2312 or GB18030, it displays well in Chinese.

I'm really new to osticket, stucked here. don't know what to do to fix it.
So, I really need your guys' help.

Hi Jasper, I've done the translation for Simplified Chinese. don't know where to upload it. so attached here to send it to you.
Is it proper?
:-)

At 2012-09-07 13:24:18,"Jasper Frumau" notifications@github.com wrote:

Yeah, just work on the translations first please. We can add the zh-tw and zh-cn folder when all is done. Also added you to the translators team.

¡ª
Reply to this email directly or view it on GitHub.

Hi coolbq.

I create a Branch "chinese" for you put the you translation and for we test the better code page.

Please push you changes on this new branch.

For this you need fetch news and update from github with the command "git fetch" and rebase you master with "chinese" branch with command "git rebase chinese"

Is good you git/config file is similar a this:

[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
[remote "origin"]
url = ssh://git@github.com/OsTicket-Reloaded/OsTicket.git
push = refs/heads/:refs/heads/
push = refs/tags/:refs/tags/
fetch = +refs/heads/master:refs/remotes/origin/chinese
[branch "master"]
remote = origin
merge = refs/heads/chinese

With this configuration, you master branch (on local repository) reflect the "chinese" branch on git repository, and always you make the "git pull" you get the "chinese" branch on you local "master" branch.

Now you can use always the command "git pull" for get the "chinese" branch on you "master" branch.

Thanks for you translation.

Where do I push these commands?

Hi, I downloaded Git for Windows and tried to install it and commit your guided configuration. But when I try to execute "git fetch" command, it prompts "fatal: Invalid refspec 'refs/heads/:refs/heads/'".

Pls help me with it. I'm too new to Github.

Thanks

This instructions is for a existent local repository (cloned and altered)

but this instruction I don't put for push, for correct you need change for
this:

[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
[remote "origin"]
url = ssh://git@github.com/OsTicket-Reloaded/OsTicket.git
push = refs/tags/:refs/tags/
push = refs/heads/master:refs/heads/chinese
fetch = refs/heads/master:refs/remotes/origin/chinese
[branch "master"]
remote = origin
merge = refs/heads/chinese

Carlos Delfino
Programador, Analista
Voluntário por Um Desejo no Coração
Para conhecer meu site visite: http://www.carlosdelfino.eti.br
Quer apoiar meus projetos curta minha fan page: http://fb.me/cdcp.ong
Tel: (31) 8406-9811 (claro) (31) 9838-7171 (vivo)

2012/9/10 coolbq notifications@github.com

Hi, I downloaded Git for Windows and tried to install it and commit your
guided configuration. But when I try to execute "git fetch" command, it
prompts "fatal: Invalid refspec 'refs/heads/:refs/heads/'".

Pls help me with it. I'm too new to Github.

Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-8443105.

hhm, I'm wonderring, what I need to do to make the translation working?
I tried your guided things but still don't know where to start.
Really appreciate your help.

I find out the problem with the UNICODE displaying issue is that I didn't store the translate.php file in UNICODE. Now the displaying issue is solved. But meet one more important one:
I have translated all the phrases into Chinese, but in the Admin panel, many parts are still in English.

Coolbq, let's start again.

Make a backup of your work.

Make Clone project on git hub with the command:

git clone git@github.com:OsTicket-Reloaded/OsTicket.git OsTicket_chinese

Create the branch of your language with the command:

git branch remotes/origin/chinese

No change to the new branch, just do the rebase with the following command:

git rebase remotes/origin/chinese

Now edit your config file and leave it in the following way:

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/master:refs/remotes/origin/chinese
push = +refs/heads/master:refs/heads/chinese
url = git://github.com/OsTicket-Reloaded/OsTicket.git
[branch "master"]
remote = origin
merge = refs/heads/chinese

Now return to your backup only changed files you want to send to the
repository.

Use the command:

git rebase remotes/origin/chinese

Carlos Delfino
Programador, Analista
Voluntário por Um Desejo no Coração
Para conhecer meu site visite: http://www.carlosdelfino.eti.br
Quer apoiar meus projetos curta minha fan page: http://fb.me/cdcp.ong
Tel: (31) 8406-9811 (claro) (31) 9838-7171 (vivo)

2012/9/10 coolbq notifications@github.com

hhm, I'm wonderring, what I need to do to make the translation working?
I tried your guided things but still don't know where to start.
Really appreciate your help.


Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-8444254.

Thanks for your detailed guide.

But how come that I have translated all the phrases into Chinese, but in the Admin panel, many parts are still in English?

I just translated the traslate.php file and didn't touch any other files.

Thank you very much for the guidance, but I still failed to manipulate.
So, I attached the finished Simplified Chinese language file, and hope you can help package it.
Thanks.

At 2012-09-11 10:09:09,"Carlos Delfino Carvalho Pinheiro" notifications@github.com wrote:
Coolbq, let's start again.

Make a backup of your work.

Make Clone project on git hub with the command:

git clone git@github.com:OsTicket-Reloaded/OsTicket.git OsTicket_chinese

Create the branch of your language with the command:

git branch remotes/origin/chinese

No change to the new branch, just do the rebase with the following command:

git rebase remotes/origin/chinese

Now edit your config file and leave it in the following way:

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/master:refs/remotes/origin/chinese
push = +refs/heads/master:refs/heads/chinese
url = git://github.com/OsTicket-Reloaded/OsTicket.git
[branch "master"]
remote = origin
merge = refs/heads/chinese

Now return to your backup only changed files you want to send to the
repository.

Use the command:

git rebase remotes/origin/chinese

Carlos Delfino
Programador, Analista
Voluntário por Um Desejo no Coração
Para conhecer meu site visite: http://www.carlosdelfino.eti.br
Quer apoiar meus projetos curta minha fan page: http://fb.me/cdcp.ong
Tel: (31) 8406-9811 (claro) (31) 9838-7171 (vivo)

2012/9/10 coolbq notifications@github.com

hhm, I'm wonderring, what I need to do to make the translation working?
I tried your guided things but still don't know where to start.
Really appreciate your help.


Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-8444254.


Reply to this email directly or view it on GitHub.

I do not see the package. Please email me one at jasperfrumau gmail.com . Thanks!

Got the file by email. Thanks a lot!!!