Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Antechinus on April 21, 2022, 01:04:14 AM

Title: Language file lulz
Post by: Antechinus on April 21, 2022, 01:04:14 AM
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
Title: Re: Language file lulz
Post by: shadav on April 21, 2022, 02:36:38 AM
Untitled.png
Title: Re: Language file lulz
Post by: Antechinus on April 21, 2022, 02:45:31 AM
Yeah but you're American. You think everything is en_US. :D
Title: Re: Language file lulz
Post by: Diego Andrés on April 21, 2022, 09:55:03 AM
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.