Language file lulz

Started by Antechinus, April 21, 2022, 01:04:14 AM

Previous topic - Next topic

Antechinus

Code (index.arabic.php) Select
<?php
// Version: 2.1.0; index

global $forum_copyright$webmaster_email$scripturl$context$boardurl;

// Native name, please use full HTML entities to write your language's name.
$txt['native_name'] = 'English';

// Locale (strftime, basename). For more information see:
//   - https://php.net/function.setlocale
$txt['lang_locale'] = 'en_US';
$txt['lang_dictionary'] = 'en';
//https://developers.google.com/recaptcha/docs/language
$txt['lang_recaptcha'] = 'en';

// Ensure you remember to use uppercase for character set strings.
$txt['lang_character_set'] = 'UTF-8';
// Character set and right to left?
$txt['lang_rtl'] = false;

Code (index.english_british.php) Select
<?php
// Version: 2.1.0; index

global $forum_copyright$webmaster_email$scripturl$context$boardurl;

// Native name, please use full HTML entities to write your language's name.
$txt['native_name'] = 'English (UK)';

// Locale (strftime, basename). For more information see:
//   - https://php.net/function.setlocale
$txt['lang_locale'] = 'en_US';
$txt['lang_dictionary'] = 'en';
//https://developers.google.com/recaptcha/docs/language
$txt['lang_recaptcha'] = 'en';

Code (index.romanian.php) Select
<?php
// Version: 2.1.0; index

global $forum_copyright$webmaster_email$scripturl$context$boardurl;

// Native name, please use full HTML entities to write your language's name.
$txt['native_name'] = 'Română';

// Locale (strftime, basename). For more information see:
//   - https://php.net/function.setlocale
$txt['lang_locale'] = 'ro_RO';
$txt['lang_dictionary'] = 'ro';
//https://developers.google.com/recaptcha/docs/language
$txt['lang_recaptcha'] = 'ro';

// Ensure you remember to use uppercase for character set strings.
$txt['lang_character_set'] = 'UTF-8';
// Character set and right to left?
$txt['lang_rtl'] = false;
// Number format.
$txt['number_format'] = '1,234.00';

The last one is tricky. See if you can spot it. :D

shadav

You cannot view this attachment.

Antechinus

Yeah but you're American. You think everything is en_US. :D

Diego Andrés

That'd not be a bug really, it just means no one is actively working on that translation, or hasn't been updated.
You can participate in crowdin if you are interested, that's where the action happens and it's really easy to use.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: