misterunknown / ifm

Improved File Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i18n - duplicate lines in JSON

maggie44 opened this issue · comments

Hi,

Beginnings of an Arabic JSON contribution here, but there are a number of duplicate lines in a bunch of the current JSON language files ('file_new' for example is in the 'en' file twice). In some instances, there are different translations for duplicate entries, for example in the 'en' file:

"file_save_error": "File could not be edited or created: ",
"file_save_error": "File could not be saved.",

Putting them through https://jsonlint.com indicates the issues in each.

If you have a standardised JSON I can base each language file on I will look to make amendments.

{
    "ajax_request": "AJAXطلب",
    "archive_create_error": "تعذر أنشاء الأرشيف",
    "archive_create_success": "تم إنشاء الأرشيف بنجاح",
    "archive_invalid_format": "صيغة الأرشيف غير صحيحة",
    "archivename": "اسم الأرشيف",
    "cancel": "إلغاء",
    "close": "إغلاق",
    "copy": "نسخ",
    "copy_error": "تعذر نسخ الملفات التالية",
    "copy_success": "تم نسخ الملف / الملفات بنجاح",
    "copylink": "نسخ الرابط",
    "create_archive": "إنشاء أرشيف",
    "data": "بيانات",
    "delete": "حذف",
    "directoryname": "اسم الدليل",
    "download": "تحميل",
    "edit": "تحرير ",
    "editor_options": "خيارات المحرر",
    "error": "خطأ ",
    "extract": "استخراج",
    "extract_error": "تعذر استخراج الملف",
    "extract_filename": "استخراج الملف",
    "extract_success": "تم استخراج الملف بنجاح",
    "file_copy_to": "الى",
    "file_delete_confirm": "هل تود حذف الملف التالي؟",
    "file_delete_error": "تعذر حذف الملف / الملفات",
    "file_delete_success": "تم حذف الملف / الملفات بنجاح",
    "file_display_error": "لا يمكن عرض أو تحرير الملف",
    "file_load_error": "تعذر تحميل الملف",
    "file_new": "ملف جديد",
    "file_new": "ملف جديد",
    "file_no_permission": "ليس لديك صلاحية لإنشاء أو تحرير الملف",
    "file_not_found": "تعذر العثور على الملف ",
    "file_open_error": "تعذر فتح الملف",
    "file_rename": "تعديل اسم الملف",
    "file_rename_error": "تعذر تعديل اسم الملف",
    "file_rename_success": "تم تعديل اسم الملف بنجاح",
    "file_save_confirm": "هل تود حفظ الملف التالي؟",
    "file_save_error": "تعذر إنشاء أو تحرير الملف ",
    "file_save_error": "تعذر حفظ الملف",
    "file_save_success": "تم حفظ الملف بنجاح",
    "file_upload_error": "تعذر رفع الملف",
    "file_upload_success": "تم رفع الملف بنجاح",
    "filename": "اسم الملف",
    "filename_new": "اسم الملف الجديد",
    "filename_slashes": "يجب ألا يحتوي اسم الملف على علامة ترقيم الشرطة المائلة",
    "filter": "تصفية النتائج",
    "folder_create_error": "تعذر إنشاء المجلد",
    "folder_create_success": "تم إنشاء المجلد بنجاح",
    "folder_new": "مجلد جديد",
    "folder_not_found": "تعذر العثور على المجلد",
    "folder_tree_load_error": "حدث خطأ أثناء البحث عن المجلد",
    "footer": "IFM - improved file manager | ifm.php hidden |",
    "general_error": "خطأ عام",
    "github": "GitHubقم بزيارة المشروع على ",
    "group": "مجموعة",
    "invalid_action": "الإجراء غير صحيح",
    "invalid_archive_format": "zip, tar, tar.gz, tar.bz2 صيغة الأرشيف غير صحيحة، الصيغ الممكنة هي",
    "invalid_data": "بيانات غير صحيحة من الخادم",
    "invalid_dir": "الدليل غير صحيح",
    "invalid_filename": "اسم الملف غير صحيح",
    "invalid_params": "المعامل غير صحيح",
    "invalid_url": "العنوان غير صحيح",
    "json_encode_error": "JSONتعذر الصياغة في ",
    "last_modified": "آخر تعديل",
    "load_config_error": "تعذر تحميل التكوين",
    "load_template_error": "تعذر تحميل النماذج",
    "load_text_error": "تعذر تحميل النصوص",
    "login": "تسجيل الدخول",
    "login_failed": "لم يتم تسجيل الدخول بنجاح",
    "logout": "تسجيل الخروج",
    "method": "طريقة",
    "move": "نقل",
    "move_error": "تعذر نقل الملفات التالية",
    "move_success": "تم نقل الملف / الملفات بنجاح",
    "nopermissions": "ليس لديك الصلاحية للقيام بذلك",
    "options": "خيارات",
    "owner": "المالك",
    "password": "كلمة المرور",
    "path_content": "محتوى",
    "pattern_error_slashes": "يجب ألا يحتوي النمط على علامة ترقيم الشرطة المائلة ",
    "permission_change_error": "تعذر تغيير الصلاحيات",
    "permission_change_success": "تم تغيير الصلاحيات بنجاح",
    "permission_parse_error": "تعذر تحليل الصلاحيات بنجاح",
    "permissions": "صلاحيات",
    "refresh": "تحديث",
    "remaining_tasks": "لا يزال هناك مهام قائمة. هل تود إعادة التحميل؟",
    "rename": "إعادة تسمية",
    "rename_filename": "إعادة تسمية الملف",
    "request": "طلب",
    "response": "استجابة",
    "save": "حفظ",
    "save_wo_close": "حفظ بدون إغلاق",
    "search": "بحث",
    "search_pattern": "نمط",
    "select_destination": "حدد الوجهة",
    "size": "حجم",
    "soft_tabs": "إضافة فراغ",
    "tab_size": "حجم علامة التبويب",
    "tasks": "مهام",
    "toggle_nav": "تبديل التنقل",
    "upload": "رفع",
    "upload_drop": "قم بإسقاط الملف / الملفات للرفع",
    "upload_file": "رفع ملف",
    "upload_overwrite_hint": "سيتم استبدال الملف / الملفات التالية",
    "upload_overwrite_confirm": "هل تريد الرفع على أية حال؟",
    "upload_remote": "الرفع عن بعد",
    "upload_remote_url": "عنوان الرفع عن بعد",
    "username": "اسم المستخدم",
    "word_wrap": "التفاف النص"
}

I fixed the duplicate keys in the language files. I would recommend to create a pull request for this additional language, so you are visible as an contributor to the project ;)

Will do. Sorry, should have been clearer, was happy to send a pull request with the duplicates removed too but wasn't sure on the "file_save_error": string which was the best one to go for.

I see you have gone and changed them now, really appreciate it. Will amend the Arabic one and submit a pull request.

Prior warning, the Arabic one is creating an issue in the footer. "github": "GitHubقم بزيارة المشروع على ", seems to run off the page, perhaps something to do with the right to left writing in Arabic. Will make more sense when it's compiled with the language file, but wanted to flag it before the pull request gets merged.