Translations please

Support & site news.
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri »

No problem :)

Sorry, it goes technically too hard to do the language specific links. At the moment I use caching for the links, so the system doesn't need to recreate it each time. It makes it quite hard to change the links for each visitor. Also, how do I figure out the language name for each language? They need to be translated. What about when there will be more languages? It just causes too much problems :/

The links are customizable though. They can show up like this:

[en] [fi] [fr] [sp] (yeah, for Spanish it should be [es], but I don't know a way to figure out it - I'm not sure if there is a ready function in php for that)

[eng] [fin] [fre] [spa]

They could also be like

##ENG## | ##FIN## | ##FRE## | ##SPA##

I guess I made the point out. You can customize it a lot. Btw, are you able to get to the administration panel?


Edit French is updated :)
Now stuck in programming JavaScript
User avatar
Sora
Senior Member
Posts: 444
Joined: 2004-04-03 11:05
Contact:

Post by Sora »

Editing again (gomennn... ^_~;; ;)

[quote]<?php
// phpBB Site language file for News module
// Language: Fran
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri »

Ah, yeah. I haven't yet figured out, how to fix redirecting problem... but I'll eventually manage to do that :roll:

"There is always a solution"

And French updated once again ^^
Now stuck in programming JavaScript
User avatar
Tenson
Senior Member
Posts: 387
Joined: 2004-04-01 18:01
Location: Seville, Spain

Post by Tenson »

[quote="Merri"]Btw, are you able to get to the administration panel?[/quote]

Yes, I'm able. I changed the links to show that with no problem:

[english] :: [finnish] :: [french] :: [spanish]

When I click Spanish, the General section in administration menu doesn't have a caption.
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri »

Its because it uses outdated English language file for that. I don't bother updating them all the time ^^;;
Now stuck in programming JavaScript
User avatar
Tenson
Senior Member
Posts: 387
Joined: 2004-04-01 18:01
Location: Seville, Spain

Post by Tenson »

[quote="Merri"]There is one row to be translated, just tell me that if you don't do more changes :) If you do more changes, then just post the entire file with the changes, eases my life that way ^^[/quote]

[quote]
<?php
// phpBB Site language file for News module
// Language: Espa
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri »

Spanish updated ^^
Now stuck in programming JavaScript
User avatar
Sora
Senior Member
Posts: 444
Joined: 2004-04-03 11:05
Contact:

Post by Sora »

I have a question...

Can I use Html and BBCode when posting news ??? o_o
I have a *little thing* to post but I wanted to know before trying :)
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri »

You can use any HTML, BBcode isn't supported.
Now stuck in programming JavaScript
User avatar
Sora
Senior Member
Posts: 444
Joined: 2004-04-03 11:05
Contact:

Post by Sora »

arf -_- (BBCode was nice...)

arigatou ^_^;
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri »

Well, I can add support for it if you want :)
Now stuck in programming JavaScript
User avatar
Sora
Senior Member
Posts: 444
Joined: 2004-04-03 11:05
Contact:

Post by Sora »

If it's not too hard for you... I would really be happy ^_^;;;
(CHU for Merri ^.^)
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

Post by Merri »

After taking some look at the phpBB code, they've really made it hard to find out how it works. So I'm not going to add it too soon, maybe when I have nothing better to do.

I've spent too much of this day to everything else but coding. Must do code or I start slipping with it and it never gets to finishing... there is a lot of things to do.
Now stuck in programming JavaScript
User avatar
Merri
Posting Freak
Posts: 819
Joined: 2004-04-01 03:16
Location: Finland
Contact:

New language files

Post by Merri »

These are all the current English language files. There will be changes as I can't organize these in the way I want as I don't have all the language files. lang_main will expand for one and get doubled content from other files.

Anyways, here are the files:

[quote="lang_admin.php - WILL CHANGE A LOT - Merri"]
<?php
// phpBB Site language file for Admin module
// Language: English
// Author: Merri <merri@mbnet.fi>
// Notes: Please follow this format when making your own language files / translating.

// common
$lang['Admin_title'] = 'Administration';
$lang['Admin_no_access'] = 'You are not authorized to view administration panel';
$lang['Admin_submit'] = 'Submit';
$lang['Admin_desc_default'] = 'Welcome to the Administration page! You can use the following links to change various aspects in your site:';
$lang['Admin_desc_auth'] = 'On this page you can change the user permissions for each module. If a module misses from the list, please visit the modules admin page to update the list.';
$lang['Admin_desc_gauth'] = 'On this page you can change the group permissions for each module. If a module misses from the list, please visit the modules admin page to update the list.';
$lang['Admin_desc_gen'] = 'Here you will be able to change various detailed settings of your site and see phpBB Site information.';
$lang['Admin_desc_lang'] = 'This page checks the languages installed to your site. If you want to, you can also check if all language files for each module exist.';
$lang['Admin_desc_menu'] = 'On this page you can setup the menu of your site in various languages. You are able to do any kind of link, not only module links.';
$lang['Admin_desc_module'] = 'This page checks the modules installed to your site and views all module information.';

$lang['Admin_front'] = 'Admin Mainpage';
$lang['Admin_auth'] = 'Permissions';
$lang['Admin_gauth'] = 'Group Permissions';
$lang['Admin_gen'] = 'General';
$lang['Admin_lang'] = 'Languages';
$lang['Admin_menu'] = 'Menu';
$lang['Admin_module'] = 'Modules';

$lang['Admin_detected_lang'] = 'Detected languages';
$lang['Admin_lang_menu'] = 'Language menu';
$lang['Admin_lang_linkstyle'] = 'Link style';
$lang['Admin_lang_textstyle'] = 'Text style';
$lang['Admin_smallcase'] = 'lower case';
$lang['Admin_capitalized'] = 'Capitalized';
$lang['Admin_uppercase'] = 'UPPER CASE';
$lang['Admin_lang_textbefore'] = 'Text before link text';
$lang['Admin_lang_textafter'] = 'Text after link text';
$lang['Admin_lang_textbetween'] = 'Text inbetween links';
$lang['Admin_lang_menu_updated'] = 'UPDATED!';
$lang['Admin_check_lang'] = 'Check for existing language files';
$lang['Admin_status_ok'] = 'OK';
$lang['Admin_status_missing'] = 'MISSING';

$lang['Admin_permission_to'] = 'Permission to';

?>
[/quote]

[quote="lang_main.php - WILL CHANGE A LOT - Merri"]
<?php
// phpBB Site main language file
// Language: English
// Author: Merri <merri@mbnet.fi>

$lang['Site_index'] = 'Mainpage';
$lang['Site_no_translation'] = 'No translation available';
$lang['Site_yes'] = 'Yes';
$lang['Site_no'] = 'No';
$lang['Site_return'] = 'Go back to previous page';

?>
[/quote]

[quote="lang_news.php - Not likely to change a lot - Merri"]
<?php
// phpBB Site language file for News module
// Language: English
// Author: Merri <merri@mbnet.fi>
// Notes: Please follow this format when making your own language files / translating.

// common
$lang['Module_name'] = 'News';

// news.php
$lang['News_no_access_view'] = 'You have no access to view news.';
$lang['News_written_by'] = 'Written by';
$lang['News_translation_by'] = 'Translation by';
$lang['News_translate'] = 'Translate';
$lang['News_write'] = 'Write news';
$lang['News_no_news'] = 'No news available';
$lang['News_delete'] = 'Delete';
$lang['News_edit'] = 'Edit';

// news_admin.php
$lang['News_admin_desc'] = 'On this page you are able to change settings specific to News module.';
$lang['News_pages_per_page'] = 'News per page';
$lang['News_updated'] = 'Updated!';

// news_write.php
$lang['News_no_access_write'] = 'You have no access to write or translate news.';
$lang['News_translate'] = 'Translate news';
$lang['News_original_subject'] = 'Original subject';
$lang['News_original_message'] = 'Original message';
$lang['News_subject'] = 'Subject';
$lang['News_message'] = 'Message';
$lang['News_submit'] = 'Submit news';
$lang['News_submit_edit'] = 'Save changes';
$lang['News_public'] = 'Public';
$lang['News_public_news'] = 'Show to all visitors';
$lang['News_nonpublic_news'] = 'Show to users with permission';
$lang['News_stored'] = 'News is saved to the database. You\'ll soon be redirected back to the news...';
$lang['News_not_stored'] = 'News weren\'t saved to the database. Please give both subject and message.';
$lang['News_do_delete'] = 'Are you sure you want to delete this news item?';
$lang['News_deleted'] = 'News message have been deleted.';
$lang['News_edited'] = 'News message have been edited.';

?>
[/quote]

[quote="lang_news_admin.php - May get additions - Merri"]
<?php
// phpBB Site language file for Admin module (News)
// Language: English
// Author: Merri <merri@mbnet.fi>
// Notes: Please follow this format when making your own language files / translating.
// It is important for the prefix (news) to be exact to the main module name.

$lang['news_title'] = 'News';

// Permission to
$lang['news_view'] = 'view news page';
$lang['news_read'] = 'read public news';
$lang['news_post'] = 'write news';
$lang['news_edit'] = 'edit news';
$lang['news_delete'] = 'delete news';
$lang['news_admin'] = 'administrate news settings';
$lang['news_extra'] = 'nothing (unused)';

?>
[/quote]

I might be adding two new permissions: permission to edit own messages and to delete own messages. These do make changes to the files and I'm already sorry about this. I noticed these permissions were "missing" just a few minutes ago.
Now stuck in programming JavaScript
User avatar
Bazaa
Senior Member
Posts: 257
Joined: 2004-04-13 20:10

Post by Bazaa »

Here are the portuguese translations! Well, we don't know if everything is alright because both of us understand much of php as my dog. If anything is wrong, sorry! :( But we've followed the examples, so maybe it isn't that bad :lol:


[quote]<?php
// phpBB Site main language file
// Language: Portugu
Post Reply