Skip to content

Commit

Permalink
Localization support
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamede1945 committed May 28, 2016
1 parent d5ff967 commit a4558e1
Show file tree
Hide file tree
Showing 87 changed files with 5,940 additions and 4,628 deletions.
162 changes: 161 additions & 1 deletion Quran.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Quran/AudioDownloadingBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AudioDownloadingBarView: UIView {

func setUp() {
loadViewFromNib()
infoLabel.text = NSLocalizedString("downloading_title", comment: "")
infoLabel.text = NSLocalizedString("downloading_title", tableName: "Android", comment: "")
}

func loadViewFromNib() {
Expand Down
280 changes: 280 additions & 0 deletions Quran/Base.lproj/Android.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
"app_name" = "Quran";
"downloadPrompt_title" = "Download Required Files?";
"downloadPrompt" = "In order for Quran Android to work properly,\
we need to download some files. If you do not do this now, the app\
may not work reliably and will require an Internet connection for reading.\
Would you like to download the required files now?";
"downloadTabletPrompt" = "We recently added improved images for\
tablets. Would you like to download these images now?";
"downloadImportantPrompt" = "There is a small yet important update\
for the Quran images you have on your device. Would you like to download this\
patch now?";
"downloadPrompt_ok" = "Yes";
"downloadPrompt_no" = "No";
"downloading_title" = "Downloading…";
"downloading_message" = "Please wait for the files to download (resume supported).";
"extracting_title" = "Processing…";
"menu_about" = "About Us";
"menu_other_apps" = "Other apps";
"menu_settings" = "Settings";
"menu_jump_last_page" = "Last page";
"menu_tags" = "Tags";
"menu_bookmarks" = "Bookmarks";
"menu_bookmarks_page" = "Page Bookmarks";
"menu_bookmarks_ayah" = "Ayah Bookmarks";
"menu_sort" = "Sort";
"menu_sort_date" = "Date Added";
"menu_sort_location" = "Location in Quran";
"menu_sort_group_by_tags" = "Group by Tags";
"menu_translation" = "Show Translation";
"menu_back_to_page" = "Show Quran";
"menu_help" = "Help";
"menu_search" = "Search";
"menu_get_translations" = "Get Translations";
"menu_jump" = "Jump";
"gotoPage" = "Go to page";
"cancel" = "Cancel";
"about_description" = "Quran for Android is a free Quran application. Please do not forget the contributors in your prayers.";
"about_data_sources" = "Data Sources";
"about_images" = "Images";
"about_madani_images" = "The Quran images are based on the fonts from the King Fahd Quran Printing Complex";
"about_madani_images_url" = "https://github.com/quran/quran.com-images";
"about_naskh_images" = "The Quran images for the Naskh app were taken (with permission) from SHL Info Systems";
"about_naskh_images_url" = "http://www.shlinfosystems.com";
"about_qaloon_images" = "Qaloon images used with permission of Nous Memes Editions Et Diffusion (Tunisia)";
"about_quranicaudio" = "QuranicAudio";
"about_quranicaudio_summary" = "Gapless mp3 Quran recitations";
"about_quranicaudio_url" = "http://quranicaudio.com";
"about_quran_ksu" = "Electronic Moshaf Project";
"about_quran_ksu_summary" = "The King Saud University Electronic Moshaf Project was the app\'s source of Arabic Tafaseer and translations for various languages";
"about_quran_ksu_url" = "http://quran.ksu.edu.sa";
"about_tanzil" = "Tanzil";
"about_tanzil_summary" = "Translations for many languages";
"about_tanzil_url" = "http://tanzil.net";
"about_noorhidayat" = "Noorhidayat";
"about_noorhidayat_summary" = "Noorehira font and Mufti Taqi Translation";
"about_noorhidayat_url" = "http://www.noorehidayat.org";
"about_open_source" = "Open Source Projects";
"about_dagger2" = "Dagger 2";
"about_dagger2_url" = "http://google.github.io/dagger";
"about_okhttp" = "OkHttp";
"about_okhttp_url" = "https://github.com/square/okhttp";
"about_rxjava" = "RxJava";
"about_rxjava_url" = "https://github.com/ReactiveX/RxJava";
"about_rxandroid" = "RxAndroid";
"about_rxandroid_url" = "https://github.com/ReactiveX/RxAndroid";
"about_rxpreferences" = "RxPreferences";
"about_rxpreferences_url" = "https://github.com/f2prateek/rx-preferences";
"about_moshi" = "Moshi";
"about_moshi_url" = "https://github.com/square/moshi";
"about_sliding_panel" = "AndroidSlidingUpPanel";
"about_sliding_panel_url" = "https://github.com/umano/AndroidSlidingUpPanel";
"about_others" = "Others";
"about_contributors" = "Contributors";
"about_contributors_summary" = "A list of people who contributed to the development of Quran for Android";
"about_contributors_url" = "https://github.com/quran/quran_android/blob/master/CONTRIBUTORS.md";
"help_title" = "Frequently Asked Questions";
"help" = "<b>How do I play audio?</b>\
<br/>Open any Quran page. Tap on the screen once. At the bottom, you will notice\
a play button and some text with the name of a qari. Click the name of the qari to\
choose a different qari. Click play to download and play the current page or sura.\
<br/>\
<br/><b>How do I view translation?</b>\
<br/>Open any Quran page. Tap on the screen once. In the top, you will notice a\
globe icon (or, if you don\'t see it, click an icon with three square dots) - click\
this and choose translation to view the translation.\
<br/>\
If you do not have any translations downloaded, it will take\
you to a screen where you can download translations. Choose and download a translation,\
then return back and tap the globe icon again to view the translation.\
<br/>\
<br/><b>How do I bookmark a page?</b>\
<br/>Open any Quran page. Tap on the screen once. In the top right, you will see a\
bookmark icon. Tap the bookmark icon to bookmark the page (the color will turn solid white). Tap the bookmark icon\
again to remove the bookmark.\
<br/>\
<br/><b>How do I make the text larger?</b>\
<br/>For the Arabic pages, hold your phone in landscape. This makes the text larger.\
For translations, go to settings and set translation text size.\
<br/>\
<br/><b>How do I share an ayah?</b>\
<br/>While on any Arabic page, press and hold on any ayah to get a menu where you can\
choose to bookmark, tag, share or copy that ayah to the clipboard, see the translation,\
or listen to its recitation.<br/>\
<br/><b>Malayalam/Tamil/Bengali/Urdu fonts don\'t work!</b>\
<br/>Unfortunately, Android versions prior to 4.0 do not support these fonts, and there is\
little we can do to help with this.";
"search_hint" = "Search the Quran";
"quranSearchType" = "Verses of the Quran";
"storage_permission_rationale" = "Quran wants your permission to store its data on\
external storage. Quran will work without this permission, but if you clear data or\
uninstall the app, all downloaded pages, audio, and data will be removed. Grant\
Quran permission?";
"storage_permission_please_restart" = "Please restart the app for this to take effect.";
"found_in_sura" = "Found in Sura";
"no_results" = "No results found for \"%s\"";
"no_active_translation" = "You have no active translation set. Please set an active translation first and then search again.";
"translation_settings" = "Translation Settings";
"no_arabic_search_available" = "You have not downloaded the Arabic search pack. Please download it and try your search again.";
"get_arabic_search_db" = "Get Arabic Search Database";
"prefs_category_navigation" = "Navigation";
"prefs_volume_key_navigation_title" = "Volume key navigation";
"prefs_volume_key_navigation_summary" = "Navigate between pages using volume keys";
"prefs_category_reading" = "Reading Preferences";
"prefs_category_translation" = "Translation Preferences";
"prefs_category_display_settings" = "Display Settings";
"prefs_use_arabic_title" = "Arabic mode";
"prefs_use_arabic_summary_on" = "Use Arabic for application interface";
"prefs_new_background_title" = "New background";
"prefs_lock_orientation_title" = "Lock screen orientation";
"prefs_lock_orientation_summary_on" = "Use fixed orientation mode";
"prefs_lock_orientation_summary_off" = "Adaptive to current orientation mode";
"prefs_landscape_orientation_title" = "Landscape orientation";
"prefs_landscape_orientation_summary_on" = "Always use landscape mode";
"prefs_landscape_orientation_summary_off" = "Always use portrait mode";
"prefs_night_mode_title" = "Night mode";
"prefs_night_mode_summary" = "Use dark background and light fonts";
"prefs_night_mode_text_brightness_title" = "Text brightness";
"prefs_night_mode_text_brightness_summary" = "Brightness of the text when night mode is active";
"prefs_overlay_page_info_title" = "Show page info";
"prefs_overlay_page_info_summary" = "Overlay page number, sura name, and juz\' number while reading";
"prefs_display_marker_title" = "Display marker popups";
"prefs_display_marker_summary" = "Display popup on reaching juz\', hizb, etc.";
"prefs_highlight_bookmarks_title" = "Highlight bookmarks";
"prefs_highlight_bookmarks_summary" = "Highlight bookmarked ayahs while reading";
"prefs_translation_text_title" = "Translation text size";
"prefs_translations" = "Translations";
"prefs_translations_summary" = "Download and manage translations";
"prefs_ayah_before_translation_title" = "Ayah before translation";
"prefs_ayah_before_translation_summary" = "Show ayah in Arabic above the translation";
"prefs_category_download" = "Download Options";
"prefs_streaming_title" = "Streaming";
"prefs_streaming_summary" = "Stream audio when possible (non-gapless audio only)";
"prefs_download_amount_title" = "Download amount";
"prefs_download_amount_summary" = "Preferred download amount for non-gapless audio";
"prefs_audio_manager" = "Audio manager (experimental)";
"prefs_audio_manager_summary" = "Manage and download Quranic audio";
"downloaded_translations" = "Downloaded";
"available_translations" = "Available for download";
"remove_button" = "Remove";
"dialog_ok" = "OK";
"prefs_app_location_title" = "Quran data directory";
"prefs_app_location_summary" = "Choose where to store Quran files";
"prefs_send_logs_title" = "Send logs";
"prefs_send_logs_summary" = "Send debug logs to the developer";
"prefs_sdcard_internal" = "Internal storage";
"prefs_sdcard_external" = "External SD card %1$d";
"prefs_app_size" = "Current data size is";
"prefs_calculating_app_size" = "Calculating App Size";
"prefs_copying_app_files" = "Copying App files";
"prefs_err_moving_app_files" = "Failed to move app files";
"prefs_no_enough_space_to_move_files" = "Insufficient space to move app files";
"prefs_megabytes_int" = "%1$d MB";
"prefs_megabytes_str" = "%s MB";
"prefs_tablet_mode_title" = "Tablet Mode";
"prefs_tablet_mode_enabled" = "In landscape, two pages will appear side by side.";
"prefs_tablet_mode_disabled" = "In landscape, only one page will appear.";
"prefs_category_advanced" = "Advanced Options";
"prefs_export_title" = "Export";
"prefs_export_summary" = "Export a copy of bookmarks and tags";
"import_data_permissions_error" = "Unable to read backup file due to permissions error.";
"import_data_error" = "Invalid backup file (or unable to read backup file).";
"import_data" = "Import Data";
"import_data_and_override" = "If you import this file, it will replace all your \\
bookmarks with %1$d bookmark(s) and %2$d tag(s). Import?";
"import_successful" = "Import Successful";
"export_data_error" = "Error exporting data.";
"exported_data" = "Data exported to %1$s.";
"logs_email" = "[email protected]";
"warning" = "Warning";
"kitkat_external_message" = "Due to Android limitations, if you choose to place Quran\
data on your external SD card and later uninstall or clear data for Quran Android, all Quran\
Android pages and audio will be deleted and you will have to download them again. Are you\
sure you want to use the external SD card?";
"please_grant_permissions" = "Please grant permission in application settings.";
"update_available" = "Update Available";
"translation_updates_available" = "An update is available for some of your translations. Visit the translations screen now?";
"translation_dialog_yes" = "Yes";
"translation_dialog_later" = "Later";
"quran_rob3" = "¼";
"quran_nos" = "½";
"quran_talt_arb3" = "¾";
"quran_hizb" = "Hizb";
"quran_juz2" = "Juz\'";
"quran_page" = "Page";
"quran_sura" = "Surahs";
"quran_ayah" = "Ayah %1$d";
"quran_ayah_details" = "%1$s - Ayah %2$s, Juz\' %3$s";
"quran_sura_title" = "Surat %1$@";
"sura_ayah_notification_str" = "Sura %1$s, Ayah %2$d";
"bookmarks_current_page" = "Current Page";
"index_loading" = "Loading…";
"canceling" = "Canceling…";
"juz2_description" = "Juz\' %1$d";
"page_description" = "page %1$d, Juz\' %2$d";
"highlighting_database" = "Required Files";
"timing_database" = "Required Files";
"infinity" = "∞";
"sdcard_error" = "Could not find SD card. Please mount it and try again.";
"download_successful" = "Download Successful";
"download_processing" = "Processing Download…";
"download_error_general" = "Download failed";
"download_error_disk" = "Not enough disk space to download";
"download_error_network" = "Could not download due to network error";
"download_error_perms" = "Could not download due to permissions error";
"download_error_invalid_download" = "Downloaded file was corrupted";
"download_error_invalid_download_retry" = "Corrupted file, attempting to re-download";
"download_error_network_retry" = "Network error, trying to resume…";
"notification_download_canceled" = "Download canceled";
"download_non_wifi_prompt" = "You are not on Wi-Fi. Download data anyway?";
"download_progress" = "Downloaded %1$s / %2$s";
"download_sura_progress" = "Downloaded %1$s / %2$s of sura %3$d";
"download_sura_ayah_progress" = "Downloading sura %1$d ayah %2$d";
"process_progress" = "Processing file %1$d / %2$d";
"download_retry" = "Retry";
"download_cancel" = "Cancel";
"download_extra_data" = "We need to download one or two small files to support sharing and translation. Download now?";
"remove_dlg_title" = "Remove Translation?";
"remove_dlg_msg" = "Are you sure you would like to remove the %1$s?";
"error_getting_translation_list" = "Unable to download the list of translations. Please try again later.";
"search_data" = "Search Data";
"need_translation" = "You don\'t have any translations/tafaseer downloaded yet.";
"get_translations" = "Get Translations";
"email_us" = "If your question is not answered above, you can email [email protected] for support.\
Please note that we receive lots of emails, so we may not be able to reply to all of them.";
"makki" = "Makki";
"madani" = "Madani";
"play_from" = "From";
"play_to" = "To";
"play_restrict_range" = "Only play the above verses";
"play_verses_range" = "Play set of verses:";
"play_each_verse" = "Play each verse:";
"play_apply" = "Apply";
"play_apply_and_play" = "Apply and Play";
"previous" = "Previous";
"play" = "Play";
"pause" = "Pause";
"stop" = "Stop";
"next" = "Next";
"bookmark_ayah" = "Bookmark this Ayah";
"tag_ayah" = "Tag this Ayah";
"share_ayah" = "Share Ayah Link";
"share_ayah_text" = "Share Ayah Text";
"translation_ayah" = "Ayah Translation/Tafseer";
"play_from_here" = "Play from Here";
"via_string" = "via @QuranAndroid";
"search_key" = "Press the search key to look up a verse";
"copy_ayah" = "Copy Ayah";
"ayah_copied_popup" = "Ayah Copied";
"delete_bookmark" = "Delete Bookmark";
"tag_bookmark" = "Tag Bookmark";
"delete_tag" = "Delete Tag";
"edit_tag" = "Edit Tag";
"new_tag" = "New Tag";
"not_tagged" = "Not Tagged";
"undo" = "Undo";
"tag_dlg_title" = "Tag";
"tag_name" = "Name";
"bookmarks_list_empty" = "No Bookmarks";
"tags_list_empty" = "No Tags";
"audio_manager" = "Audio Manager";
70 changes: 70 additions & 0 deletions Quran/Base.lproj/Android.stringsdict
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files_downloaded</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@files_downloaded@</string>
<key>files_downloaded</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>1 sura downloaded</string>
<key>other</key>
<string>%1$d suras downloaded</string>
</dict>
</dict>
<key>search_results</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@search_results@</string>
<key>search_results</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>One result for \&quot;%1$s\&quot;:</string>
<key>other</key>
<string>%2$d results for \&quot;%1$s\&quot;:</string>
</dict>
</dict>
<key>verses</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@verses@</string>
<key>verses</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>One verse</string>
<key>other</key>
<string>%d verses</string>
</dict>
</dict>
<key>bookmark_tag_deleted</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@bookmark_tag_deleted@</string>
<key>bookmark_tag_deleted</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>Deleted one item</string>
<key>other</key>
<string>Deleted %d items</string>
</dict>
</dict>
</dict>
</plist>
Loading

0 comments on commit a4558e1

Please sign in to comment.