Language gets _ ?!

Hey!

 

What the **** am i doing wrong?

 

I simply copy paste the language and reupload it, and then it keeps getting like this everywhere, backend & frontend.

 

 

imgoingtodie.JPG · 91.2K · 76 views
Quote · 15 Aug 2010

Did you re-upload it through the administration panel, or FTP?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 15 Aug 2010

Hey!

 

Through the admin panel - At first (yesterday) i got an DB error but, not now :)

Quote · 15 Aug 2010

Try recompiling your languages, as well as clearing your cache directories.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 15 Aug 2010

Didn't help :/

 

Tried to upload english default -

 

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/****.dk/httpdocs/****administration/lang_file.php on line 556

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/***.dk/httpdocs/****/administration/lang_file.php:556) in /var/www/vhosts/****.dk/httpdocs/****/inc/admin_design.inc.php on line 56

Quote · 15 Aug 2010

Describe in detail what you're doing.

If you're trying to import the lang file that is in the dolphin lang folder then don't. That file is not in the proper format for import, and will cause an extra incomplete language to appear in the database that shows up in languages section with no flag or anything. That file is created when the language is compiled. It's not to be used for import.

If you export a language and try to re-import it, it will cause a database error because the language exists, thus duplication errors occur.

The proper procedure is to export the english language and then this is used to translate to another language where the name and country code is also changed in the edited file. You can then import the translated file. This import/export feature is intended to be used for translation purposes.

This is not to be used to simply edit existing language keys.

https://www.deanbassett.com
Quote · 15 Aug 2010

Hi Deano.

 

Thanks for your reply.

 

I'm exporting the EN file and translated from that.

Currently giving the Dolphin a fresh install and try to do it correctly first time when i now know what i shall do.

Quote · 15 Aug 2010

You also should export before installing any of the modules so your only translating the base language.

The modules have their own language files.

The lang files must also be saved using UTF-8 file encoding and all ' apostrophes need to be escaped with a  \ (backslash) like \` instead of just `


See this manual for more information.  http://www.boonex.com/trac/dolphin/wiki/DolLang


https://www.deanbassett.com
Quote · 15 Aug 2010

Ok - So, just for being safe.

 

1. After install i head directly to language settings and export the EN

2. I open my text editor and edit the title, code and flag (if its avaiable - if not i guess it means that i just become default?) and start translating.

3. I go to "Import" when im done and just import the file i now have saved as lang_dk or should the name stay the same?

 

- Is that correct :)

Quote · 15 Aug 2010

 

Ok - So, just for being safe.

 

1. After install i head directly to language settings and export the EN

2. I open my text editor and edit the title, code and flag (if its avaiable - if not i guess it means that i just become default?) and start translating.

3. I go to "Import" when im done and just import the file i now have saved as lang_dk or should the name stay the same?

 

- Is that correct :)

Correct. But what your name your file, lang_dk or just Denmark does not matter. Your not going to upload it to the server. It's used for import. Once imported it will get compiled and a lang_dk will be created by dolphin in the lang folder.

To translate the modules is a bit different. Go to the modules folder before you install the module          modules/boonex/install/langs and make a copy of en.php and name it dk.php and then translate it. When the module is installed, that lang will be included. But don't do the modules until you have done the main language above because those module language files will cause errors if the dk language does not exist.

The modules have an advantage over the main language. You can start the modules language with a copy of the english just renaming it to dk.php. Then you can make changes at your leisure and simply go to the modules in admin and recompile the module language.

The main language unfortunately is not that simple. You can't reimport it once its been imported unless it's deleted first.



https://www.deanbassett.com
Quote · 15 Aug 2010

Ahh

Okay - So what if i need to edit anything afterwards? How the hell am i then supposed to do that :D

Quote · 15 Aug 2010

 

Ahh

Okay - So what if i need to edit anything afterwards? How the hell am i then supposed to do that :D

You can edit language keys through the languages page in the administration panel.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 15 Aug 2010

I'm a tard .. Embarassed

 

Thanks for the answer! It helped that i clicked "search" then i suddenly appeared as i thought it would earlier haha.

Quote · 15 Aug 2010

For the main system language, admin->Settings->Languages. Search for the language key you need to edit, then check apply. The key will appear, and then you edit it there. The main system language is meant to be edited from within the language settings section without touching any external files.

However you will want to make the same change to your external file you used for the initial import so you have a copy you can use later if you should need to reinstall dolphin.

You don't even have to export. You can create a new language and you will be given the chance to copy it from the english set. Then you can edit the keys from inside the language system. This method can be used if you prefer to slowly transulate the keys over time rather than import them all at once.

The modules however are much easier. As i said, you can change the language files in those, and then recompile the language for the module in the modules section.

It's only the main system language that's a pain in the neck.

 

https://www.deanbassett.com
Quote · 15 Aug 2010

Hmm, guess i must type real slow. 2 new posts before i finished my answer. LOL.

https://www.deanbassett.com
Quote · 15 Aug 2010

- If i was asking for support in danish, i would have to wait 2 weeks and pay 100$ so it's okay if the typing goes a little slow sometimes :D I'm glad that i could figure it all out in one night instead of 2 weeks and a raped wallet.

 

Thank you for the time youre spending on me!

Quote · 15 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.