TinyPortal

Development => Support => Topic started by: Martine M on June 14, 2011, 12:44:11 PM

Title: Language
Post by: Martine M on June 14, 2011, 12:44:11 PM
Link to my site: http://www.testforum.united-tutorials-registration.com/index.php
SMF version: SMF ver. 2.0
TP version: TP ver. 1.104
Default Forum Language: English
Theme name and version: Default
Browser Name and Version: Firefox 4.01
Mods installed:
Related Error messages:


Here I am again. have a bit of trouble with TinyPortal showing right when language is Dutch.

Default language is English and there all is shown ok.

When in Dutch only portal is shown.
I had to make moderations myself in smf version 1.13 which I did but I don't see any language files altered if I look at how to install Tiny Portal manually.

Can someone tell me which files to adjust and what to put in it?
Is it only the modification.dutch.php?
Title: Re: Language
Post by: ZarPrime on June 14, 2011, 01:34:15 PM
Martine,

Uh, no, TinyPortal has it's own language files.  There are 7 files and they are all located in the following folder on your site --> /public_html/YourSite/Themes/default/languages/

Actually, there are 14 files but half of those are for utf8.  If you are using standard dutch and not dutch-utf8, you won't have to worry about those.

What you will need to do is find the following files and create new dutch files for them ...
TPdlmanager.english.php
TPgallery.english.php
TPhelp.english.php
TPmodules.english.php
TPortal.english.php
TPortalAdmin.english.php
TPShout.english.php

You will first need to create the dutch files.  To do that, open each one, then "save as" the same file except replace ".english." with ".dutch."

After you have done that, you will still have the english files but now you will also have 7 Dutch files as well ...
TPdlmanager.dutch.php
TPgallery.dutch.php
TPhelp.dutch.php
TPmodules.dutch.php
TPortal.dutch.php
TPortalAdmin.dutch.php
TPShout.dutch.php

Now, you will need to actually translate the Dutch files.  A good program for doing this is Notepad ++, located here --> http://notepad-plus-plus.org/

Open each Dutch file and begin the translations.  Anywhere that you see a line that starts with $txt will need to be translated.  As an example, in the TPmodules.dutch.php file, you'll see ...
$txt['tp-articlenotallowed']='You are not allowed to edit this article.';

The part that will need to be translated to Dutch is ...
You are not allowed to edit this article.

Nothing else on each line needs to be translated.  After you have translated all lines for each file, then just save.  When you are done the translations for all files, just upload them, via FTP, to the same location on your site where the English ones are located.  it will take a while to do this.

OK, one other thing, the same files that need to be translated are located in the RC2 zipfile.  If you extract the file to a temp location on your local computer, the files will be located in the \TinyPortal1rc2\common\Themes\default\languages folder.  You can do all the translations there without worrying about downloading the files from your site.  Once you are done, just upload the 7 Dutch files to your site at the location I mentioned above.

Questions, feel free to ask.

Oh, one more thing.  If you want to help the other Dutch users of TP, you can translate all 14 of the English files, including the utf8 ones, and then upload them to our downloads area in the appropriate category.  Once we approve them, we will make the download available.  If you want to do that, you will need to zip those files up in a certain way, so that the iso files and the utf8 files are in separate zip files.  I'll help you with that if you want to do it.

ZarPrime
Title: Re: Language
Post by: Martine M on June 14, 2011, 01:48:02 PM
Thanks Zarprime I am going to look it all up.
I am using standard Dutch lucky for me then :)

I will let you now when it is done and working.
Title: Re: Language
Post by: Martine M on June 14, 2011, 02:02:26 PM
I will give the translation to you ,would be glad to help and I am halfway there by solving it for me so no problem.

I'll first translate the iso english files and zip them already.
Title: Re: Language
Post by: Martine M on June 14, 2011, 04:37:59 PM
It is more then expected but that's no problem, hope to finish the iso today and I will do the other 7 when TinyPortal is fully installed and working on my main forum if that's ok?
Title: Re: Language
Post by: ZarPrime on June 14, 2011, 04:40:29 PM
That's no problem Martine.  Take your time.

ZP
Title: Re: Language
Post by: Martine M on June 14, 2011, 05:53:52 PM
I'm not fully done translating but I uploaded the files already to see if it fixes my problem of not being able to see the panels when language is set to dutch,
I only see the frontpage if language is set to dutch and still do with those files, but those file of coarse only translate so the problem lies somewhere else.

Do you know what the problem can be?

Title: Re: Language
Post by: IchBin on June 14, 2011, 06:00:40 PM
I'm assuming when you say that only the portal is shown, that you are referring to the blocks? There is a setting in the TPAdmin > Settings titled "Use language visibility option for blocks". When this option is turned on, you must select the language option in each block for the language that you want them to appear for. Otherwise the block will not show.
Title: Re: Language
Post by: Martine M on June 14, 2011, 06:07:05 PM
oh yes of coarse thank you very much.
Going to fix that and then back to translating :)
Title: Re: Language
Post by: Martine M on June 19, 2011, 04:44:48 PM
I am finally ready with the iso files translations.
It took some time but  I wanted to check the files twice and check them again in Tinyportal itself.

I think/hope it is all correctly done.

Can I just copy the contents of the iso files into the utf8 files?
I had a quick look and I think it is the same.
Title: Re: Language
Post by: Martine M on June 20, 2011, 12:36:04 AM
Well all files are packed and ready to go

I packed and saved the iso files as "TP10RC2-Dutch-ISO"
and the UTF8 files as "TP10RC2-Dutch-ISO"

I tried to upload them but I don't have permission for that.
Title: Re: Language
Post by: IchBin on June 20, 2011, 01:35:02 AM
You can attach them here and we will put them in the downloads center.
Title: Re: Language
Post by: Martine M on June 20, 2011, 12:01:32 PM
Here they are.  :)
Title: Re: Language
Post by: Lesmond on June 20, 2011, 01:35:50 PM
Thanks enitram, I have put the files in our download center.
Title: Re: Language
Post by: Martine M on June 20, 2011, 02:16:36 PM
you are welcome
Title: Re: Language
Post by: Martine M on June 22, 2011, 04:15:50 PM
Last night I saw that I translated a word to many in the TPortal.dutch.php and it gave a error.
I had over 2000 error messages from another moderation, that's why I looked over it at first.

8: Undefined index: forum_naam
Apply Filter: Only show the errors from this file
File: /home/unitedtu/public_html/Themes/default/languages/TPortal.dutch.php
Line: 291

$txt['whoall_forum'] = 'Forum index bekijken van <a href="' . $scripturl . '">' . $context['forum_naam'] . '[/url].';

I changed it in the files and switched them in the zip and attached them again in the topic above where the original zips where attached.
to be sure no wrong zips are attached here for someone to download.

Now there are no errors anymore I checked a few times.

Sorry for the stupid mistake.
Lucky nobody downloaded them yet.

Regards Martine
Title: Re: Language
Post by: IchBin on June 22, 2011, 04:33:07 PM
Assuming the file replace function worked in the downloads, they should be updated now.
Title: Re: Language
Post by: Martine M on June 22, 2011, 04:36:53 PM
I will check to be sure.
Title: Re: Language
Post by: Martine M on June 22, 2011, 04:39:36 PM
Yes the new file is in each download.
Title: Re: Language
Post by: Martine M on June 28, 2011, 10:22:41 PM
I just learned to make language packs that you can install through package-manager.

So I am going to alter the zips and post them here again, just going to test it out first.
Title: Re: Language
Post by: Martine M on June 29, 2011, 03:18:19 PM
The files are ready, tested and all to install through package manager.

Could you please replace them in downloads?
Title: Re: Language
Post by: IchBin on June 29, 2011, 03:55:13 PM
As cool as that may be, I think I'd rather keep all the language packs the same. This way they all install the same way and nobody gets confused. I would rather put some text and a link in the download for anyone who may want to use these packages instead though. Added the note and the link to the downloads.
Title: Re: Language
Post by: Martine M on June 29, 2011, 04:06:18 PM
No problem at all Ichbin. It is fine anyway you want to.

Just was very proud of making my first package

I know, I know for you all it is the most normal thing in the world. (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi638.photobucket.com%2Falbums%2Fuu109%2FMartine_M%2FSmilies%2Flach5.gif&hash=1c6e84c896569d889088f747d2bc1fa1a8cc5e62) (http://www.postsmile.com/)
Title: Re: Language
Post by: Freddy on June 29, 2011, 04:22:10 PM
Congrats on making your first package and thanks for the work you put in.  At least you learned a new skill :)
Title: Re: Language
Post by: Martine M on June 29, 2011, 04:35:33 PM
Thanks and your welcome.

Yes I did learn a new skill, I am learning everyday at SMF and TP.

I begin to understand a little how it all works.
Have a long way to go I know but it is a start isn't it. :)

For not ever having anything to do with a forum before February I came a long way already in my opinion.
Not bragging just glad that's all, I love learning new things.
Title: Re: Language
Post by: IchBin on June 29, 2011, 06:52:00 PM
Keep at it. The next thing you know you'll be writing a portal mod. ;)
Title: Re: Language
Post by: Martine M on June 29, 2011, 07:00:19 PM
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi638.photobucket.com%2Falbums%2Fuu109%2FMartine_M%2FSmilies%2Flach5.gif&hash=1c6e84c896569d889088f747d2bc1fa1a8cc5e62) (http://www.postsmile.com/) Think I have a long long way to go till then but hey never say never. (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi638.photobucket.com%2Falbums%2Fuu109%2FMartine_M%2FSmilies%2Fpspmoekes4yousmiliediv25.gif&hash=80aff770209cd3ea46005f272b905ac990d071de) (http://www.postsmile.com/)