Created
May 30, 2017 20:12
-
-
Save donatj/b872de5cc8f755871500a82c483aa92f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$content =' | |
"${folder}\\\\"; | |
if (!isset($data[\'file\'])) { die("This doesn\'t appear to be a language constant file".nl); } | |
$translation = trim($value,"\' \\t\\n\\r\\0\\x0B"); | |
\'es_ni\'=>\'Spanish (Nicaragua)\', | |
\'es_pa\'=>\'Spanish (Panama)\', | |
\'es_pe\'=>\'Spanish (Peru)\', | |
\'es_pr\'=>\'Spanish (Puerto Rico)\', | |
\'es_py\'=>\'Spanish (Paraguay)\', | |
\'es_sv\'=>\'Spanish (El Salvador)\', | |
\'es_us\'=>\'Spanish (United States)\', | |
\'es_uy\'=>\'Spanish (Uruguay)\', | |
\'es_ve\'=>\'Spanish (Venezuela)\', | |
\'et_ee\'=>\'Estonian (Estonia)\', | |
\'eu_es\'=>\'Basque (Spain)\', | |
\'fa_ir\'=>\'Farsi (Iran)\', | |
\'fi_fi\'=>\'Finnish (Finland)\', | |
\'fo_fo\'=>\'Faroese (Faroe Islands)\', | |
\'fr_be\'=>\'French (Belgium)\', | |
\'fr_ca\'=>\'French (Canada)\', | |
\'fr_ch\'=>\'French (Switzerland)\', | |
\'fr_fr\'=>\'French (France)\', | |
\'fr_lu\'=>\'French (Luxembourg)\', | |
\'fr_mc\'=>\'French (Principality of Monaco)\', | |
\'gl_es\'=>\'Galician (Spain)\', | |
\'gu_in\'=>\'Gujarati (India)\', | |
\'he_il\'=>\'Hebrew (Israel)\', | |
\'hi_in\'=>\'Hindi (India)\', | |
\'hr_ba\'=>\'Croatian (Bosnia and Herzegovina)\', | |
\'hr_hr\'=>\'Croatian (Croatia)\', | |
\'hu_hu\'=>\'Hungarian (Hungary)\', | |
\'hy_am\'=>\'Armenian (Armenia)\', | |
\'id_id\'=>\'Indonesian (Indonesia)\', | |
\'is_is\'=>\'Icelandic (Iceland)\', | |
\'it_ch\'=>\'Italian (Switzerland)\', | |
\'it_it\'=>\'Italian (Italy)\', | |
\'ja_jp\'=>\'Japanese (Japan)\', | |
\'ka_ge\'=>\'Georgian (Georgia)\', | |
\'kk_kz\'=>\'Kazakh (Kazakhstan)\', | |
\'kn_in\'=>\'Kannada (India)\', | |
\'ko_kr\'=>\'Korean (Korea)\', | |
\'kok_in\'=>\'Konkani (India)\', | |
\'ky_kg\'=>\'Kyrgyz (Kyrgyzstan)\', | |
\'lt_lt\'=>\'Lithuanian (Lithuania)\', | |
\'lv_lv\'=>\'Latvian (Latvia)\', | |
\'mi_nz\'=>\'Maori (New Zealand)\', | |
\'mk_mk\'=>\'FYRO Macedonian (Former Yugoslav Republic of Macedonia)\', | |
\'mn_mn\'=>\'Mongolian (Mongolia)\', | |
\'mr_in\'=>\'Marathi (India)\', | |
\'ms_bn\'=>\'Malay (Brunei Darussalam)\', | |
\'ms_my\'=>\'Malay (Malaysia)\', | |
\'mt_mt\'=>\'Maltese (Malta)\', | |
\'nb_no\'=>\'Norwegian (Bokm?l) (Norway)\', | |
\'nl_be\'=>\'Dutch (Belgium)\', | |
\'nl_nl\'=>\'Dutch (Netherlands)\', | |
\'nn_no\'=>\'Norwegian (Nynorsk) (Norway)\', | |
\'ns_za\'=>\'Northern Sotho (South Africa)\', | |
\'pa_in\'=>\'Punjabi (India)\', | |
\'pl_pl\'=>\'Polish (Poland)\', | |
\'ps_ar\'=>\'Pashto (Afghanistan)\', | |
\'pt_br\'=>\'Portuguese (Brazil)\', | |
\'pt_pt\'=>\'Portuguese (Portugal)\', | |
'; | |
$content = preg_replace('/(?(?=")"(\\\\"|[^"])*"|\'(\\\\\'|[^\'])*\')/', '""', $content); | |
var_export($content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment