Skip to content

Commit

Permalink
Add Standard Arabic and Swahili translations
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Apr 19, 2019
1 parent 496ea55 commit 51a36d2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
17 changes: 16 additions & 1 deletion template-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,28 @@ class="profile-input"
<td><label for="description"><?php esc_html_e( 'Language', 'disciple_tools' )?></label></td>
<td dir="auto">
<?php
require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
$translations = wp_get_available_translations();
$translations["ar_MA"] = [
"language" => "ar_MA",
"native_name" => "العربية (المغرب)",
"english_name" => "Arabic (Morocco)",
"iso" => [ "ar" ]
];
$translations["sw"] = [
"language" => "sw",
"native_name" => "Kiswahili",
"english_name" => "Swahili",
"iso" => [ "sw" ]
];
wp_dropdown_languages( array(
'name' => 'locale',
'id' => 'locale',
'selected' => esc_html( $dt_user->locale ),
'languages' => $dt_available_languages,
'show_available_translations' => false,
'show_option_site_default' => false
'show_option_site_default' => false,
'translations' => $translations
) );
?>
</td>
Expand Down

0 comments on commit 51a36d2

Please sign in to comment.