Topic Closed
hoghoj1
176 Posts

Hi, I want to translate a new language. Faroese.

In the plugin Multilingual Manager that language is listed, but it' almost empty. How can I add more content to it? Where is the link to translation, and am I even allowed to do anything?

5 years ago#7596

juergen
1.4K Posts
52K Downloads
16 Plugins
design, web development & visual effects

gpEasy's User Interface language and Multi-Language Manager are two different things.
Multi-Language Manager only adds the possibility to make your website's content and menus multi-language but not the User Interface.

If you want to translate the User Interface Language, here's how to:

Unfortunately gpEasy's translaion platform wikyblog, which was a convenient way to do it, is down but you can edit your local gpEasy installation's files.

/include/common.php
add a line after line 69:
'fo' =>  'Føroyskt', # Faroese

Then goto /include/languages/ directory and make a copy of en.main.inc to fo.main.inc

After this you should be able to select "Føroyskt" as interface language in Settings->Configuration->Interface->Language
The UI will be in english but you can subsequently translate it now.
Make your changes in fo.main.inc file. You should see them immediately in place after refreshing gpEasy's Admin pages.

Mind to always…

  • Escape single quotes with a backslash inside expressions: 'it\'s like this'
  • Keep variable placeholders intact: '%s out of %s files did not pass the health check.…'
  • Same to HTML tags '<em>this</em> will become intalics'
  • Use an editor that is capable of UTF-8 encoding. Most are. Take care that your fo.main.inc stays UTF-8 encoded. Use plain UTF-8 (without BOM/Signature).

If you have a working translation (complete or mostly complete) I guess, Josh will be more than happy to include it in the next release.
Simply zip and upload your fo.main.inc file here (or, if you know github, make a pull request there).

Good luck and thanks in advance for your efforts to improve gpEasy!

Edited: 5 years ago#7597

hoghoj1
176 Posts

Hi, did the whole translation, uploaded common.php and the new fo.main.inc, changed the settings for language 'Føroyskt' now visible, saved, and then this message came up, and the whole page was gone:

Oops, an error occurred while generating this page.

If you are the site administrator, you can troubleshoot the problem by changing php's display_errors setting to 1 in the gpconfig.php file.

If the problem is being caused by an addon, you may also be able to bypass the error by enabling gpEasy's safe mode in the gpconfig.php file.

More information is available in the gpEasy documentation.

Reload this page to continue.

I must add, that I've used Notepad ++ and edited the whole file in plain UTF-8 (without BOM)

No matter how often I tried to reload, I didn't get the page back to normal. I even tried to change settings in the gpconfig.php as mentioned above, but I had to way back to reload the original files and even remove the fo.main.inc.

I'd like to send you the fo.main.inc file with the whole translation, but I don't know how to do that in this forum, I'm a newbie here.

Please help?

Hoghoj1

4 years ago#7616

hoghoj1
176 Posts

Hi again,

gave it another try, same result, but then I tried to only delete the new file fo.main.inc, reloaded, and then I had my page back. So I suspect some error in that file.

Please help?

Hoghoj1

4 years ago#7617

juergen
1.4K Posts
52K Downloads
16 Plugins
design, web development & visual effects

Can you zip the file and upload it here?
Sounds much like a syntax error in it.

/edit:

…but I don't know how to do that in this forum

Oops, sorry, missed that.

You can upload files just like in your gpEasy.
Type fo_main_inc.zip,select it and press the link button in the editor. You can upload the file then using [Browse Server] button.

 

Edited: 4 years ago#7618

hoghoj1
176 Posts
Hi again, will try to send it here: fo.main.rar
4 years ago#7619

juergen
1.4K Posts
52K Downloads
16 Plugins
design, web development & visual effects

This fo_main_inc.zip works.

The error was in line 199. Missing quote and comma:

'more_options'  =>  'Fleiri ValmøguleikarFlere valgmuligheder',
(I have also removed some tabs inside expressions).
4 years ago#7620

hoghoj1
176 Posts

Hi Juergen,

and thanks for your help, it works!!!  :-)

It would be nice, if the translation can be used from within new releases to come? I'll zip the corrected file here

The error also revealed a part, that I had missed translating.

I have one question more or two:

This translation was made within version 4.4, and I have made a lot of websites with version 4.3.4. Can I use the same translation and make changes in common.php the same way as 4.4.?

Can you also guide me in translating the language in ckeditor, which files to translate and how to config?

Looking forward to hearing from you again :-)

hoghoj1

4 years ago#7621

juergen
1.4K Posts
52K Downloads
16 Plugins
design, web development & visual effects

This translation was made within version 4.4, and I have made a lot of websites with version 4.3.4. Can I use the same translation and make changes in common.php the same way as 4.4.?

Yes i think so. Just *DO NOT* use the common.php from 4.4 for earlier versions but find the line to add in the 4.3.4 common.php.
Your fo.main.inc will most likely work as it is in 4.3.4.

Can you also guide me in translating the language in ckeditor, which files to translate and how to config?

No need to transate it - there is already a Faroese translation for CKEditor.
This fo_js.zip contains the translation  which has to be unzipped to /include/thirdparty/ckeditor_34/lang/ directory.

Unfortunately this alone does not work and I couldn't find out why. Faroese can be selected as WYSIWYG language in gpEasy Config but it won't get loaded.
I even couldn't find out who's the initiator that loads the lang file.

My guess: CKEditor itself loads the lang file but refuses "fo"/Faroeses because the entry is missing in the current build.

Josh, can you help here?

4 years ago#7623

hoghoj1
176 Posts

I've checked up on ckeditor.com and made a new build of the program, ver. 4.47. You can add the languages you want, also Faroese.

I ran a new build succesfully and downloaded it ok.

Now I'm wondering if I should use it. In gp it says ckeditor_34, I possibly could use it unchanged and just copy the new ckeditor content into that directory, but I really don't know, what will happen then?

Hoghoj1

4 years ago#7624

juergen
1.4K Posts
52K Downloads
16 Plugins
design, web development & visual effects

"ckeditor_34" doesn't mean anything. The name of the directory is a leftover from earlier versions kept for compatibility (I guess).

Actually gpEasy uses CKEditor 4.

You colud try to rename the ckeditor_34 directory to ckeditor_34_bak (or such) and copy your biuld into the new ckeditor_34 directory.
If you have included all the languages, plugins and skins that gpEasy's CKEditor uses (see the original directory) you could try to replace it with the new build.
I don't know if it works - I have never replaced a whole build, only components.
 

Edited: 4 years ago#7625

hoghoj1
176 Posts

Sorry Juergen,

that didn't work, so I'm back to using the original one. :-(

I'll try to think of something else though, this has to be possible.

If you come up with something, please let me know?

Greetings,

hoghoj1

4 years ago#7626

Josh S.
2K Posts
268K Downloads
16 Themes
18 Plugins
Awesome. Just added Faroese to the 4.5 branch. I'll have another beta release out shortly
4 years ago#7628

hoghoj1
176 Posts

Hi Josh,

do you have any idea, why I can't get ckeditor with faroese to work within my 4.4 release?

I went to ckeditor.com and made a new build 4.4.7 with the same lang's as standard in gpEasy 4.4 + the faroese lang.

Uploaded to same folder ../thirdparty/ckeditor34. The result is a square only showing 3 possibilities: Save, Close & Save and Close!

Returned, put it back to old version and ok again - but :-( no faroese.

Any help would be very much appreciated. (Juergen has asked you the same question)

hoghoj1

4 years ago#7638

juergen
1.4K Posts
52K Downloads
16 Plugins
design, web development & visual effects

Got it!

Here is CKEditors full Faroese lang file: fo_js_full.zip
Download and unzip to /include/thirdparty/ckeditor_34/lang/ (overwrite the old fo.js if it's still there)

Edit /include/thirdparty/ckedior_34/ckeditor.js:
At the very end (last line) insert the green marked code:
[…]"et":1,"fi":1,"fo":1,"fr":1,"gl":1,"hr":1,[…]
(or simply download ckeditor_js.zip, unpack and overwrite ckeditor.js)

Cheers

Edited: 4 years ago#7639

hoghoj1
176 Posts

Thanks a lot :-O

You've put a lot of effort in helping us here in the Faroe Islands, I'll surely donate to keep the good work more pleasing:-)

Now I will commence in making an instruction video for my faroese clients. It is more convincing and reassuring, if everything is in your native language.

By the way, does anyone know, what happened to the english instruction video, it has disappeared?!

Have a nice day Juergen & Josh,

greetings, hoghoj1

By the way, how do I go about to donate? Is there a link somewhere on this site?

Edited: 4 years ago#7640

Josh S.
2K Posts
268K Downloads
16 Themes
18 Plugins

By the way, does anyone know, what happened to the english instruction video, it has disappeared?!

No idea what happened to that video. It was an older instructional video though so it's probably not a bad move to take it down.

By the way, how do I go about to donate?

Thanks for offering. We don't currently have a method for accepting donations set up though.

4 years ago#7649

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register