Translations please
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 :)
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
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.
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
New language files
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.
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