We're reaching a final phase on our way to the release of CPG 1.2.0 RC1!
For this release we're looking for people who are willing to contribute translations. The original translators of the language files of CPG1.1.0 have been contacted and asked to provide a translation; if you're one of them, you could just grab this text and do a translation on it - it contains everything that has been changed from version 1.1.0 to the current version.
// info about translators and translated language
$lang_translation_info = array(
'lang_name_english' => 'English', //the name of your language in English, e.g. 'Greek' or 'Spanish'
'lang_name_native' => 'English', //the name of your language in your mother tongue (for non-latin alphabets, use unicode), e.g. 'Ελληνικά' or 'Español'
'lang_country_code' => 'gb', //the two-letter code for the country your language is most-often spoken (refer to http://www.iana.org/cctld/cctld-whois.htm), e.g. 'gr' or 'es'
'trans_name'=> 'Gregory Demar', //the name of the translator - can be a nickname
'trans_email' => 'gdemar@wanadoo.fr', //translator's email address (optional)
'trans_website' => 'http://www.chezgreg.net/', //translator's website (optional)
'trans_date' => '2003-04-20', //the date the translation was created / last modified
);
$lang_meta_album_names = array(
'random' => 'Random pictures',
'lastup' => 'Last additions',
'lastalb'=> 'Last updated albums',
'lastcom' => 'Last comments',
'topn' => 'Most viewed',
'toprated' => 'Top rated',
'lasthits' => 'Last viewed',
'search' => 'Search results',
'favpics'=> 'Favourite Pictures'
);
'pic_in_invalid_album' => 'Picture is in a non existant album (%s)!?',
'banned' => 'You are currently banned from using this site.',
'not_with_udb' => 'This function is disabled in Coppermine because it is integrated with forum software. Either what you are trying to do is not supported in this configuration, or the function should be handled by the forum software.',
);
'fav_lnk' => 'My Favorites',
'util_lnk' => 'Resize pictures',
'ban_lnk' => 'Ban Users',
//Sort by filename and title
'name' => 'FILE NAME',
'title' => 'TITLE',
'sort_ta' => 'Sort by title ascending',
'sort_td' => 'Sort by title descending',
'title_a' => 'Title ascending',
'title_d' => 'Title descending',
array('Show first level album thumbnails in categories','first_level',1),
array('Show film strip', 'display_film_strip', 1),
array('Number of items in film strip', 'max_film_strip_items', 0),
array('Max dimension of a thumbnail <b>*</b>', 'thumb_width', 0),
array('Use dimension ( width or height or Max aspect for thumbnail )<b>*</b>', 'thumb_use', 7),
array('Show private album Icon to unlogged user','show_private',1),
array('Disable right-click on full-size pop-up (JavaScript - no foolproof method)', 'disable_popup_rightclick', 1),
array('Disable right-click on all "regular" pages (JavaScript - no foolproof method)', 'disable_gallery_rightclick', 1),
'Comment' => 'Comment',
'addFav'=>'Add to Fav',
'addFavPhrase'=>'Favourites',
'remFav'=>'Remove from Fav',
);
'name'=>'Name',
'comment'=>'Comment',
'your_name' => 'Anon',
);
$lang_fullsize_popup = array(
'click_to_close' => 'Click image to close this window',
);
// ------------------------------------------------------------------------- //
// File banning.php
// ------------------------------------------------------------------------- //
if (defined('BANNING_PHP')) $lang_banning_php = array(
'title' => 'Ban Users',
'user_name' => 'User Name',
'ip_address' => 'IP Address',
'expiry' => 'Expires (blank is permanent)',
'edit_ban' => 'Save Changes',
'delete_ban' => 'Delete',
'add_new' => 'Add New Ban',
'add_ban' => 'Add',
);
// ------------------------------------------------------------------------- //
// File util.php
// ------------------------------------------------------------------------- //
if (defined('UTIL_PHP')) $lang_util_php = array(
'title' => 'Resize pictures',
'what_it_does' => 'What it does',
'what_update_titles' => 'Updates titles from filename',
'what_delete_title' => 'Deletes titles',
'what_rebuild' => 'Rebuilds thumbnails and resized photos',
'what_delete_originals' => 'Deletes original sized photos replacing them with the sized version',
'file' => 'File',
'title_set_to' => 'title set to',
'submit_form' => 'submit',
'updated_succesfully' => 'updated succesfully',
'error_create' => 'ERROR creating',
'continue' => 'Process more images',
'main_success' => 'The file %s was successfully used as main picture',
'error_rename' => 'Error renaming %s to %s',
'error_not_found' => 'The file %s was not found',
'back' => 'back to main',
'thumbs_wait' => 'Updating thumbnails and/or resized images, please wait...',
'thumbs_continue_wait' => 'Continuing to update thumbnails and/or resized images...',
'titles_wait' => 'Updating titles, please wait...',
'delete_wait' => 'Deleting titles, please wait...',
'replace_wait' => 'Deleting originals and replacing them with resized images, please wait..',
'instruction' => 'Quick instructions',
'instruction_action' => 'Select action',
'instruction_parameter' => 'Set parameters',
'instruction_album' => 'Select album',
'instruction_press' => 'Press %s',
'update' => 'Update thumbs and/or resized photos',
'update_what' => 'What should be updated',
'update_thumb' => 'Only thumbnails',
'update_pic' => 'Only resized pictures',
'update_both' => 'Both thumbnails and resized pictures',
'update_number' => 'Number of processed images per click',
'update_option' => '(Try setting this option lower if you experience timeout problems)',
'filename_title' => 'Filename ⇒ Picture title',
'filename_how' => 'How should the filename be modified',
'filename_remove' => 'Remove the .jpg ending and replace _ (underscore) with spaces',
'filename_euro' => 'Change 2003_11_23_13_20_20.jpg to 23/11/2003 13:20',
'filename_us' => 'Change 2003_11_23_13_20_20.jpg to 11/23/2003 13:20',
'filename_time' => 'Change 2003_11_23_13_20_20.jpg to 13:20',
'delete' => 'Delete picture titles or original size photos',
'delete_title' => 'Delete picture titles',
'delete_original' => 'Delete original size photos',
'delete_replace' => 'Deletes the original images replacing them with the sized versions',
'select_album' => 'Select album',
);
The full new english language file can be downloaded here:
[size=18]
http://prdownloads.sourceforge.net/coppermine/english.zip?download [/size]
-----------------------------------------------------------------------------
So far, Coppermine has been translated into:
Arabic (العربية), Bosnian (Bosanski), Bulgarian (Български), Chinese Big 5 (台灣), Chinese GB2312 (中国), Czech (Česky), Danish (Dansk), Dutch (Nederlands), English (English), Estonian (Eesti), Finnish (Suomea), French (Francais), German (Deutsch), Greek (Ελληνικά), Hebrew (עברית), Hungarian (Magyarul), Italian (Italiano), Japanese (日本語), Korean, Latvian , Norwegian (Norsk), Polish (Polski), Portuguese (Português), Portuguese (Brazilian) (Português (Brazil)), Russian (Русский), Slovenian (Slovensko), Spanish (Español -Castelano), Swedish (Svenska), Thai (ไทย) and Turkish (Türkce).[/size]
Why is your language not among them? It's easy to do a translation (no coding skills needed) - there's a separate language file for each language with just text (more or less) in it.
There are hundreds of languages; I've just picked a list from somewhere on the web - those that I find particularly interessting (because there are a lot of people speaking it; no rating!) are marked
bold, but all translations are welcome:
[size=9]Aboriginal Languages, African Languages, Afrikaans, Akha, Akkadian,
Albanian (Shqip), Aragonese, Arberisht, Armenian, Assyrian, Asturian (Asturianu), Aymara, Bahasa
Malaysia, Basque,
Belarussian, Bengali, Berber, Bikol, Bisaya, Brahui, Breton, Burmese, Buruskaski, Catalan (Català), Cebuano, Cherokee, Cheyenne, Chinook, Coptic, Cornish,
Croatian (Hrvatski), Cymraeg (Welsh), Dakota, Dalekarlian, Dari, Dolomitic Ladinian, Eaiea, Egyptian, Esperanto, Farsi,
Filipino, Frisian, Gaelic (Scottish), Galician (Galego), Georgian, Guarani, Gujarati, Gypsy, Hakka, Hawaiian,
Hindi, Hmong, Icelandic (Íslenska), Ido,
Indonesian (Bahasa Indonesia), Inuktitut, Irish, Jakelimotu, Jerriais, Kamilaroi, Kannada, Kazakh, Kerala/Malayalam, Khakas, Khowar, Klingon, Konkani, Kreyol, Kurdish (Kurdi), Lakhota, Lao, Latin, Lithuanian (Lietuviu), Loglan, Lojban, Luganda, Macedonian, Maltese, Mandinka, Manx, Maori, Marathi, Mayan, Mingo, Mon, Mongolian, Montenegrin, Myanmar, Native American Languages, Neelan, Nepali, Nordic, Occitan, Ojibwe, Oneida, Papiamentu, Pashtu, Patois, Paulic,
Persian, Pidgin, Punjabi, Quechua, Romani,
Romanian (Româneste) [No-Diacritics/fara-diacritice], Romanova, Romansch, Sami, Northern, Sanskrit, Sardinian, Saxon, Scanian,
Serbian [Cyrillic/Srpski], Sesotho, Sinhala, Slovakian (Slovenská), Somali,
Spanish [Latin America/Argentina, Sranan, Sudovian, Swabian, Swahili, Swiss, Tagalog, Talossan, Tamil, Tatar, Tceqli, Theloskrit, Tibetan, Tongan, Turkmen, Uighur (Uyghurche), Ukrainian, Urdu, Uzbek, Vietnamese, Volapuk, Walloon, Wolof, Yi, Yiddish, Yiklamu, Yugoslav, Zarma.
-----------------------------------------------------------------------------
This is how you do a translation: - Download the most recent english language file
- Unzip it to your hard drive
- Open it with your favorite text editor (notepad will be fine) - do not use a WYSIWYG-editor like MS frontpage (it'll most likely ruin the file) and take a quick look at the file first...
- If you decide to actually do the translation, please post on this thread something like "I'm working on a Klingon language file" to avoid different people doing a translation for the same language!
- At the very start of the language file, there are some fields to fill out containing information about your language (for example the name of your language not in english, but IN your language) and about you (the translator) - replace the example text with yours
- The actual translation: you'll notice that there are variables/array definitions inside:
- on the left, there's the name of the var - don't change this
- on the right, there's the english translation - overwrite it with your translation
- some lines may have additional comments (with leading slashes) that will explain what the translation is used for - don't modify it[/list:u]example: this part of the english lanuage file:
'title_a' => 'Title ascending', // used for sorting the thumbnails
'title_d' => 'Title descending', // used for sorting the thumbnails
would become in a German translation: 'title_a' => 'Titel aufsteigend', // used for sorting the thumbs
'title_d' => 'Titel absteigend', // used for sorting the thumbs
- Things to look out for:
- Single quotes (apostrophes) need to have a backslash in front of them, e.g. if you want the output to be "You don't have permission to access this page." you'll have to write
'access_denied' => 'You don\'t have permission to access this page.',
(This is called "escaping" in PHP)
- letters immediately after a percent-sign ("%") must be left alone - they will later be replaced by numbers or text when the script is being run.
Example:'album_on_page' => '%d albums on %d page(s)'
would become'album_on_page' => '%d Alben auf %d Seite(n)'
in German.[/list:u]
- Save your file with the english name of your language (e.g. "german.php" or "klingon.php")
- If you can: test-drive your language file on your installation of coppermine. Watch out especially for the JavaScript alert boxes - they can be tricky...
- Once you're done, zip the file and provide any means so that we can get the file (e.g. put it up on your site for download (remember to let us know it's there) or attach it to a pm (to a member of the dev team) on the support board[/list:u]GauGau