b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • About
  • News
 
  • « b2evo 2.4.5 "Monument Valley" released [STABLE]
  • Back to work / Blogworld »

Language pack updates

Posted by fplanque on Sep 07, 2008 in Development

I have updated all 2.4 translations that were sent to me. You can download them from the language packs section.

If you have additional up-to-date language packs, please contact me directly.

If you want to create a new one, you're welcome to do so. You might want to use an existing language pack from a previous version as a start base though. It's up to you...

Finally, language packs in 3.0 will be essentially the same except that they will include definitions for the locales they can serve in a small file called for example fr-FR.locale.php. (A 3.0 language pack can actually define several locales at ounce by including several such files.) Those files will be detected by b2evolution and imported automatically.

This should make it even easier for users to install new locales. All they'd need to do is copy the files into the locales folder and then enable the desired locale from Global Settings > Regional.

The contents of the definition file would go like this:


<?php
/**
 * Locale definition
 *
 * IMPORTANT: Try to keep the locale names short, they take away valuable space on the screen!
 *
 * Documentation of the keys:
 *  - 'messages': The directory where the locale's files are. (may seem redundant but allows to have fr-FR and fr-CA
 *                tap into the same language file.)
 *  - 'charset':  Character set of the locale's messages files.
 */
$locale_defs['fr-FR'] = array(
		'name' => NT_('French (FR)'),
		'messages' => 'fr_FR',
		'charset' => 'iso-8859-1',
		'datefmt' => 'd.m.y',
		'timefmt' => 'H:i:s',
		'startofweek' => 1,
	);
?>

1 comment

Comment from: Hotelier

Hotelier

Is it possible to use English as the main language for the console (backend) but displaying everything else in FR? It’s tricky, I know, but that what I (we) need for a new website..

2008-10-23 @ 11:28

b2evolution News

  • Home
  • Latest comments

Search

Categories

  • All
  • New releases
    • Press releases
  • Community
  • b2evolution.net
  • Development
    • New features
    • Technology
    • Security info
    • Translations
  • The Webmaster's Blog

Archives

  • July 2024 (1)
  • March 2022 (1)
  • September 2020 (1)
  • January 2020 (1)
  • May 2019 (1)
  • March 2019 (2)
  • September 2018 (1)
  • May 2018 (1)
  • September 2017 (1)
  • March 2017 (1)
  • September 2016 (1)
  • March 2016 (1)
  • More...

XML Feeds

  • RSS 2.0: Posts
  • Atom: Posts
What is RSS?

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque