diff --git a/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java b/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java index cd8cab9e..27955e0e 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/SettingsFragment.java @@ -30,7 +30,7 @@ public class SettingsFragment extends Fragment { private Context ctx = null; - private static String[] langList = {"English", "French", "German", "Russian", "Arabic"}; + private static String[] langList = {"Arabic", "Chinese", "English", "French", "German", "Russian"}; private static int langSelectedChoice = 0; private static String[] timeList = {"Pretty", "Normal"}; @@ -247,6 +247,9 @@ public class SettingsFragment extends Fragment { case "Arabic": tinyDb.putString("locale", "ar"); break; + case "Chinese": + tinyDb.putString("locale", "zh"); + break; case "French": tinyDb.putString("locale", "fr"); break; diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml new file mode 100644 index 00000000..18630a54 --- /dev/null +++ b/app/src/main/res/values-zh/strings.xml @@ -0,0 +1,413 @@ + + + + + + + + + 我的仓库 + 已点赞 + 仓库列表 + 个人信息 + 设置 + 组织 + 关于 + 评价 GitNex + 退出 + + + 关于 + 首页 + 我的仓库 + 仓库列表 + 个人信息 + 创建仓库 + 组织 + 工单 + 设置 + 创建组织 + 创建里程碑 + 创建工单 + 创建标签 + 鸣谢 + 更新标签 + 赞助商 + 已点赞 + 创建团队 + 添加电子邮件地址 + 新建文件 + + 版本\u0020:\u0020 + 构建编号 \u0020:\u0020 + 演示仓库 + Repo with ORG + 演示描述 + 没有任何仓库 + 演示组织 + 演示描述 + 没有任何组织 + 创建 + 更新 + 仓库名称 + 仓库描述 + 私有 + 最大 255 字符 + 所有者 + 组织名称 + 组织描述 + 最大 255 字符 + 用户名 + 密码 + LOGIN + Instance URL + Open Navigation Drawer + Close Navigation Drawer + Login to Gitea + 1- Choose the correct protocol(https or http). \n2- Enter Gitea url e.g: try.gitea.io. \n3- If you have enabled 2FA for your account, enter the code in the OTP Code field. \n4- For HTTP basic auth use USERNAME@DOMAIN.COM in the URL field. + Wrong username/password + :// + It is not recommended to use HTTP protocol unless you are testing on local network. + Malformed JSON was received. Server response was not successful. + Instance URL is required + Username is required + Password is required + Cannot access network, please check your Internet connection + Repository name is empty + Repository name is not valid. [a–z A–Z 0–9 – _] + Repository description exceeds the max 255 characters limit + Repository created successfully + Something went wrong, please try again + Repository of this name already exists under selected Owner + Organization name is empty + Organization name is not valid, [a–z A–Z 0–9 – _] + Organization description exceeds the max 255 characters limit + Organization created successfully + Something went wrong, please try again + Organization already exists + Processing + Search + Work in progress + Close + Add + Org + Repo + Pri + 12345 + 98324 + 54321 + Remove + Instance has returned an error. Code\u0020 + RepoDetailActivity + Details + Open Issues + Closed Issues + Milestones + Releases + Branches + Labels + Settings + Collaborators + No issues found + Repository + Owner + Description + Website + Size + Default Branch + SSH URL + Clone URL + Repo URL + Forks + Created + Last Updated + 2018–10–30 08:25:25 + + 0 + master + at + # + Opened\u0020 + Due Date + Status: open + open + Status: closed + closed + Creator :\u0020 + Assignees + Type: Issue + Type: Pull Request + Commenter:\u0020 + #%1$d %2$s + Milestone %1$s + Due %1$s + Opened %1$s + Assigned to: %1$s + Comment + Please write your comment + Comment posted + Something went wrong, please try again + Avatar + GitNex + No milestones found + Commit author: %1$s + Commit hash \n%1$s%2$s + Release Title + Release Description + Downloads + Release Type + Release Zip + Release Tar + No releases found + Tag: %1$s + Collaborator : %1$s + No collaborators found + Edit + Title + Description + Due Date + %1$d-%2$d-%3$d + Milestone title is empty + Milestone title is not valid. [a–z A–Z 0–9 – _] + Milestone description exceeds the max 255 characters limit + Milestone created successfully + Something went wrong, please try again + Please choose due date + Open issues : %1$d + Closed issues : %1$d + Select Assignees + Select Labels + Done + Cancel + Title + Assignees + Description + Due Date + Milestone + Labels + %1$s [%2$s] + %1$s - @%2$s + Issue title is empty + Issue description is empty + New issue created successfully + Something went wrong, please try again + No collaborators found + No labels found + + Translation + Date & Time + Settings saved. + Language + English + Appearance + Pretty + Choose Language + Choose Time Format + Issues Badge + Help us translate GitNex to your language + Code Block Color + Code Block Color Selector + Home Screen + My Repositories + Select Home Screen + + No more data available. + New Label + Repo Menu + Label Name + Label Color + Label name is empty. + Label name is not valid. + Label created. + Something went wrong, please try again. + Label updated. + No labels found + Desc + Edit + Delete + Label deleted + Something went wrong, please try again + No branches found + Design + + + Authorization Error + It seems that the Access Token is revoked OR your are not allowed to see these contents. In case of revoked Token, please logout and login again. + Cancel + Logout + Delete\u0020 + Do you really want to delete this label? + OK + Cancel + + OrgDetailActivity + Repositories + Teams + Members + New Team + No teams found + Team name + Team desc + Permission : %1$s + No members found + Org members + Organization team members + + + Team Name + Description + Permission + Access Controls + Members can view and clone team repositories. + Members can read and push to team repositories. + Members can pull and push to team repositories and add collaborators to them. + Please enter team name. + Team name should contain only alphanumeric, dash (-), underscore (_) and dot (.) characters. + Please select permission. + Team description have illegal characters. + Team description have more than 100 characters. + Team created successfully. + Something went wrong, please try again. + + + Edit Comment + Edit + Comment updated + + + Add / Remove Collaborator + Search users + Username + Remove\u0020 + Do you want to remove this user from the repository? + User removed from the repository. + User added to the repository. + + + Followers + Following + Add Email Address + Save + Email Address + New email added successfully. + Email address is empty. + Email address is not valid. + Email address is already in use. + Primary + Emails + + + Add / Remove Labels + Labels updated + Close Issue + Add Comment + Edit Issue + Reopen Issue + Issue closed + Issue reopened + Add Assignees + Add / Remove Assignees + Assignees updated + + + Select Entries + Please select at least one option + Please select at least + You can only select up to + option + options + Select all + Deselect all + + Repository Meta + + Add New User + Users + Admin + + + Full Name + Email + Username + Password + Invalid Full Name + Invalid Username + Invalid Email + New user added successfully + User already exists + + + + + Edit Issue #%1$s + Issue updated. + + + New Release + Tag Name + Title + Content + Mark as Pre-Release + Select Branch + Draft + Tag name is empty + Title is empty + New release created + + Enter OTP code + OTP code should be numbers. + OTP Code (Optional) + Enter the otp code if 2FA is enabled + Open in Browser + Stargazers + Watchers + No stars found + No watchers found + Star + Watcher + Commit + Zip Archive + Tar Archive + + File Name + New Branch Name + File Content + Create New File + with folder: app/test.md + Commit Message + Invalid branch name, may only contain –, a–z, 0–9 + Commit message is too long + New file created + Current Branches + Fields like filename, content and commit message are required + Selecting current branch will disable new branch + e.g: new-branch + New branch name cannot be empty if current branch is not selected + Filter + Copy Issue URL + Issue URL copied to clipboard + %1$d\uFF05 completed + + OK + Done + Cancel + Something went wrong, please try again + This request needs higher Gitea version than the one installed. Please upgrade your instance to the latest version of Gitea. + No data found + Add + Remove + You are not authorized to perform this action. + Menu + Edit + Delete + edited + Save + Name + Description + Website + Location + Max 255 characters + All fields are required + Translate GitNex with Crowdin + +