Browse Source

edit japanese translation based on native speaker feedback,
make variables more clear (where translations are put into placeholders instead of the english language value)

Ramona 2 years ago
parent
commit
1a9e74d21d

+ 1 - 1
client/src/components/Plans/Plans.jsx

@@ -162,7 +162,7 @@ const Plans = (props) => {
             }
           </TableCell>
           <TableCell onClick={() => {goToEdit(plan);}} align="center" className={classes.tableCell + ' ' + classes.narrowCell}>
-            {(plan.hasDate && plan.date) ? new Date(plan.date).toLocaleDateString(t('dateLocale'), dateStringOptions) : ''}
+            {(plan.hasDate && plan.date) ? new Date(plan.date).toLocaleDateString(t('DATE_LOCALE'), dateStringOptions) : ''}
           </TableCell>
           <TableCell className={classes.tableCell} align="center" onClick={() => {plan.missingIngredients.length === 0 ? goToEdit(plan) : openMissingIngredientDialog(plan);}}>
             <FontAwesomeIcon icon={plan.gotEverything ? faCheck : faTimes} />

+ 1 - 1
client/src/components/Plans/ShoppingList.jsx

@@ -111,7 +111,7 @@ const ShoppingList = (props) => {
       listItems.push(
         <>
           <ListSubheader component="div">
-            <span className={classes.secondary}>{date === 'noDate' ? t('Without Date') : new Date(date).toLocaleDateString(t('dateLocale'), dateStringOptions)}</span>
+            <span className={classes.secondary}>{date === 'noDate' ? t('Without Date') : new Date(date).toLocaleDateString(t('DATE_LOCALE'), dateStringOptions)}</span>
             {plans.length === 1 ? <>{' - '}<span className={classes.primary}>{plans[0].title}</span></> : ''}
           </ListSubheader>
           {plans.length === 1 ? getIngredientListItems(plans[0])

+ 1 - 1
client/src/components/Settings/EditMealCategories.jsx

@@ -163,7 +163,7 @@ const EditMealCategories = (props) => {
 
   return (<>
       <ChipInput fullWidth
-                 placeholder={t('placeholder category')}
+                 placeholder={t('PLACEHOLDER_CATEGORY')}
                  variant="outlined"
                  value={categories}
                  onAdd={addCategory}

+ 1 - 1
client/src/components/Settings/EditMealTags.jsx

@@ -63,7 +63,7 @@ const EditMealTags = (props) => {
 
   return (
     <ChipInput fullWidth
-               placeholder={t('placeholder tag')}
+               placeholder={t('PLACEHOLDER_TAG')}
                variant="outlined"
                value={tags}
                onAdd={addTag}

+ 3 - 3
client/src/translations/_example.translation.json

@@ -33,7 +33,7 @@
   "Save": "",
   "Login": "",
   "Logout": "",
-  "dateLocale": "",
+  "DATE_LOCALE": "",
   "Missing Ingredient": "",
   "Please log in to use the app": "",
   "Welcome to <1>Emilia</1>!": "",
@@ -88,8 +88,8 @@
   "Contact start view": "",
   "A new version of the app is available!": "",
   "Reload": "",
-  "placeholder tag": "",
-  "placeholder category": "",
+  "PLACEHOLDER_TAG": "",
+  "PLACEHOLDER_CATEGORY": "",
   "Go to my meals": "",
   "Import": "",
   "Import Meal": "",

+ 3 - 3
client/src/translations/de.translation.json

@@ -34,7 +34,7 @@
   "Save": "Speichern",
   "Login": "Anmelden",
   "Logout": "Abmelden",
-  "dateLocale": "de-DE",
+  "DATE_LOCALE": "de-DE",
   "Missing Ingredient": "Fehlende Zutat",
   "Please log in to use the app": "Bitte melden Sie sich an, um die App zu benutzen",
   "Welcome to <1>Emilia</1>!": "Willkommen bei <1>Emilia</1>!",
@@ -90,8 +90,8 @@
   "Contact start view": "Startansicht für Kontakte",
   "A new version of the app is available!": "Neue Version verfügbar!",
   "Reload": "Laden",
-  "placeholder tag": "z.B. vegetarisch",
-  "placeholder category": "z.B. Familienrezepte",
+  "PLACEHOLDER_TAG": "z.B. vegetarisch",
+  "PLACEHOLDER_CATEGORY": "z.B. Familienrezepte",
   "Go to my meals": "Zu meinen Gerichten",
   "Import": "Importieren",
   "Import Meal": "Gericht importieren",

+ 3 - 3
client/src/translations/en-GB.translation.json

@@ -34,7 +34,7 @@
   "Save": "Save",
   "Login": "Login",
   "Logout": "Logout",
-  "dateLocale": "en-GB",
+  "DATE_LOCALE": "en-GB",
   "Missing Ingredient": "Missing Ingredient",
   "Please log in to use the app": "Please log in to use the app",
   "Welcome to <1>Emilia</1>!": "Welcome to <1>Emilia</1>!",
@@ -89,8 +89,8 @@
   "Contact start view": "Contact start view",
   "A new version of the app is available!": "A new version is available!",
   "Reload": "Reload",
-  "placeholder tag": "vegetarian",
-  "placeholder category": "family recipes",
+  "PLACEHOLDER_TAG": "vegetarian",
+  "PLACEHOLDER_CATEGORY": "family recipes",
   "Go to my meals": "Go to my meals",
   "Import": "Import",
   "Import Meal": "Import Meal",

+ 3 - 3
client/src/translations/en-US.translation.json

@@ -34,7 +34,7 @@
   "Save": "Save",
   "Login": "Login",
   "Logout": "Logout",
-  "dateLocale": "en-US",
+  "DATE_LOCALE": "en-US",
   "Missing Ingredient": "Missing Ingredient",
   "Please log in to use the app": "Please log in to use the app",
   "Welcome to <1>Emilia</1>!": "Welcome to <1>Emilia</1>!",
@@ -89,8 +89,8 @@
   "Contact start view": "Contact start view",
   "A new version of the app is available!": "A new version is available!",
   "Reload": "Reload",
-  "placeholder tag": "e.g., vegetarian",
-  "placeholder category": "e.g., family recipes",
+  "PLACEHOLDER_TAG": "e.g., vegetarian",
+  "PLACEHOLDER_CATEGORY": "e.g., family recipes",
   "Go to my meals": "Go to my meals",
   "Import": "Import",
   "Import Meal": "Import Meal",

+ 3 - 3
client/src/translations/es.translation.json

@@ -34,7 +34,7 @@
   "Save": "Guardar",
   "Login": "Iniciar",
   "Logout": "Desconectar",
-  "dateLocale": "es-ES",
+  "DATE_LOCALE": "es-ES",
   "Missing Ingredient": "Ingrediente Faltante",
   "Please log in to use the app": "Por favor, inicie sesión para utilizar la aplicación",
   "Welcome to <1>Emilia</1>!": "Bienvenid@ a <1>Emilia</1>!",
@@ -89,8 +89,8 @@
   "Contact start view": "Vista inicial de contactos",
   "A new version of the app is available!": "¡Una nueva versión está disponible!",
   "Reload": "Recargar",
-  "placeholder tag": "p. ej., vegetariano",
-  "placeholder category": "p. ej., recetas internacionales",
+  "PLACEHOLDER_TAG": "p. ej., vegetariano",
+  "PLACEHOLDER_CATEGORY": "p. ej., recetas internacionales",
   "Go to my meals": "A mis comidas",
   "Import": "Importar",
   "Import Meal": "Importar Comida",

+ 3 - 3
client/src/translations/fr-FR.translation.json

@@ -34,7 +34,7 @@
   "Save": "Sauvegarder",
   "Login": "Connexion",
   "Logout": "Déconnexion",
-  "dateLocale": "fr-FR",
+  "DATE_LOCALE": "fr-FR",
   "Missing Ingredient": "Ingrédient Manquant",
   "Please log in to use the app": "Veuillez vous connecter pour utiliser l'application",
   "Welcome to <1>Emilia</1>!": "Bienvenue à <1>Emilia</1>!",
@@ -89,8 +89,8 @@
   "Contact start view": "Afficher en premier (contacts)",
   "A new version of the app is available!": "Une nouvelle version est disponible!",
   "Reload": "Rechargez",
-  "placeholder tag": "par ex. végétarien",
-  "placeholder category": "par ex. Recettes de famille",
+  "PLACEHOLDER_TAG": "par ex. végétarien",
+  "PLACEHOLDER_CATEGORY": "par ex. Recettes de famille",
   "Go to my meals": "A mes repas",
   "Import": "Importer",
   "Import Meal": "Importer un repas",

+ 3 - 3
client/src/translations/it.translation.json

@@ -34,7 +34,7 @@
   "Save": "Salva",
   "Login": "Accedi",
   "Logout": "Uscita ",
-  "dateLocale": "it",
+  "DATE_LOCALE": "it",
   "Missing Ingredient": "Ingrediente Mancante",
   "Please log in to use the app": "Si prega di effettuare il login per utilizzare l'applicazione",
   "Welcome to <1>Emilia</1>!": "Benvenuto a <1>Emilia</1>!",
@@ -89,8 +89,8 @@
   "Contact start view": "Vista iniziale dei contatti",
   "A new version of the app is available!": "Una nuova versione è disponibile!",
   "Reload": "Ricarica",
-  "placeholder tag": "ad es. vegetariano",
-  "placeholder category": "ad es. antipasti",
+  "PLACEHOLDER_TAG": "ad es. vegetariano",
+  "PLACEHOLDER_CATEGORY": "ad es. antipasti",
   "Go to my meals": "Ai miei pasti",
   "Import": "Importare",
   "Import Meal": "Importa pasto",

+ 61 - 60
client/src/translations/jp.translation.json

@@ -1,65 +1,66 @@
 {
-  "Meal": "お食事",
-  "Meals": "お食事",
-  "Plan": "プラン",
-  "Plans": "プラン",
+  "Meal": "レシピ",
+  "Meals": "レシピ",
+  "Plan": "予定",
+  "Plans": "予定",
   "Social": "ソーシャル",
   "Settings": "設定方法",
-  "Edit Meal": "エディットお食事",
-  "Edit Plan": "編集プラン",
-  "Add Plan": "プラン追加",
-  "New Meal": "新お食事",
-  "New Plan": "新企画",
-  "Meal deleted": "食事は削除",
-  "Meal {{title}} deleted": "食事{{title}}削除",
-  "Meal re-added": "お食事再追加",
-  "Meal {{title}} re-added": "食事{{title}}を再追加しました。",
-  "Plan deleted": "プラン削除",
-  "Plan {{title}} deleted": "プラン{{title}}削除",
-  "Plan re-added": "プラン再追加",
+  "Edit Meal": "レシピの編集",
+  "Edit Plan": "予定の編集",
+  "Edit Profile": "プロフィールの編集",
+  "Add Plan": "予定の追加",
+  "New Meal": "新しいレシピ",
+  "New Plan": "新しい予定",
+  "Meal deleted": "レシピの削除",
+  "Meal {{title}} deleted": "レシピ{{title}}削除",
+  "Meal re-added": "レシピ再追加",
+  "Meal {{title}} re-added": "レシピ{{title}}を再追加しました。",
+  "Plan deleted": "予定の削除",
+  "Plan {{title}} deleted": "予定の{{title}}削除",
+  "Plan re-added": "予定の再追加",
   "Plan {{title}} re-added": "プラン{{title}}を再追加しました。",
   "Add": "追加",
   "Done": "完了",
-  "Share": "シェア",
+  "Share": "共有",
   "Due Date": "期限日",
-  "Got everything?": "全部揃った?",
+  "Got everything?": "材料は全て揃いましたか?",
   "Link to Recipe": "レシピへのリンク",
-  "Meal Title": "お食事タイトル",
+  "Meal Title": "料理名",
   "Comment": "コメント",
   "Undo": "元に戻す",
-  "Title": "タイトル",
+  "Title": "表題",
   "Date": "日付",
-  "Cancel": "キャンセル",
-  "Save": "保存する",
+  "Cancel": "中止",
+  "Save": "保存",
   "Login": "ログイン",
   "Logout": "ログアウト",
-  "dateLocale": "日付ロケール",
-  "Missing Ingredient": "ミッシング・イングレディエント",
+  "DATE_LOCALE": "jp",
+  "Missing Ingredient": "不足食材",
   "Please log in to use the app": "アプリをご利用の際は、ログインしてください",
   "Welcome to <1>Emilia</1>!": "<1>Emilia</1>へようこそ!",
-  "APP_SUBTITLE": "ここでは、食事のコレクションを作成し、いつ何を作るか計画することができます。",
-  "Looks like there are no meals here yet": "ここはまだ食事がないようです",
-  "Currently nothing planned": "現在のところ予定なし",
-  "Loading": "ローディング",
-  "No results": "果なし",
-  "No contacts yet": "まだコンタクトはありません",
+  "APP_SUBTITLE": "ここでは、レシピのコレクションを作成し、いつ何を作るか計画することができます。",
+  "Looks like there are no meals here yet": "まだレシピがないようです",
+  "Currently nothing planned": "現在予定なし",
+  "Loading": "アップロード中",
+  "No results": "果なし",
+  "No contacts yet": "未登録",
   "Search for friends in the top right corner": "右上の「友達」を検索する",
-  "Contacts": "連絡先",
+  "Contacts": "友達",
   "Plan some meals": "食事の計画を立てる",
   "Language": "言語",
   "Name": "名称",
   "Nickname": "ニックネーム",
-  "Email address": "電子メールアドレス",
-  "Email": "電子メール",
+  "Email address": "メールアドレス",
+  "Email": "メール",
   "Reset Image": "画像をリセットする",
   "Save Changes": "変更を保存する",
   "profile picture of {{name}}": "{{name}}のプロフィール画像",
   "Logged in via {{provider}}": "{{provider}}でログインしています",
-  "Since you are logged in via your {{provider}} account, you cannot change your data here. You can change the data directly in your {{provider}} account and it will be adopted on the next login.": "{{provider}}アカウントでログインしているため、ここでデータを変更することはできません。{{provider}}アカウントで直接データを変更すれば、次回のログイン時に採用されます。",
+  "Since you are logged in via your {{provider}} account, you cannot change your data here. You can change the data directly in your {{provider}} account and it will be adopted on the next login.": "{{provider}}アカウントでログインしているため、ここでデータを変更することはできません。{{provider}}アカウントで直接データを変更すれば、次回のログイン時に反映されます。",
   "You can, however, set a custom profile picture and nickname.": "ただし、プロフィール画像とニックネームは自由に設定できます。",
   "Use dark mode?": "ダークモードを使用しますか?",
-  "Missing Ingredients": "不足している成分",
-  "Missing Ingredients for {{plan}}": "{{plan}}の欠品成分について",
+  "Missing Ingredients": "不足材料",
+  "Missing Ingredients for {{plan}}": "{{plan}}の不足材料について",
   "List is currently empty": "リストは現在空です",
   "Without Date": "日付なし",
   "Choose Icon for {{categoryName}}": "{{categoryName}}のアイコンを選択してください。",
@@ -70,40 +71,40 @@
   "Tag": "タグ",
   "Select Tags": "タグを選択",
   "Create tag \"{{input}}\"": "タグ「 {{input}}」を作成します。",
-  "Meals without category": "カテゴリーのない食事",
+  "Meals without category": "カテゴリーのないレシピ",
   "Filter": "フィルター",
   "Filter by Tags": "タグで絞り込む",
-  "No Tags so far": "今のところタグなし",
-  "Type to add Tags": "タグを追加するタイプ",
-  "Type to add a Category": "カテゴリーを追加するタイプ",
-  "No meals found for filter selection": "フィルター選択用の食事は見つかりませんでした",
-  "expand all": "押し広げる",
-  "collapse all": "総崩れになる",
+  "No Tags so far": "タグなし",
+  "Type to add Tags": "タグを入力",
+  "Type to add a Category": "カテゴリーを入力",
+  "No meals found for filter selection": "絞り込みの結果レシピは見つかりませんでした",
+  "expand all": "内容画面を見る",
+  "collapse all": "内容画面を閉じる",
   "Search for users": "ユーザーを検索する",
   "Copy": "コピー",
-  "Copied": "コピ",
-  "Check out the following meal: {{mealTitle}}": "次の食事をチェックしてみてください: {{mealTitle}}",
-  "Import into my meals": "私の食事に取り込む",
-  "Own start view": "独自のスタートビュー",
-  "Contact start view": "コンタクト開始画面",
+  "Copied": "コピーしました",
+  "Check out the following meal: {{mealTitle}}": "レシピ{{mealTitle}}を確認する",
+  "Import into my meals": "私のレシピに取り込む",
+  "Own start view": "初期画面設定",
+  "Contact start view": "コンタクト初期画面設定",
   "A new version of the app is available!": "新バージョンのアプリを公開しました!",
   "Reload": "リロード",
-  "placeholder tag": "プレースホルダタグ",
-  "placeholder category": "プレースホルダカテゴリ",
-  "Go to my meals": "私の食事に行く",
-  "Import": "インポート",
-  "Import Meal": "インポートお食事",
-  "Successfully imported meal": "お食事のインポートに成功しました",
-  "Plan Meal": "プラン・お食事",
-  "You can use this field to add a recipe in text form, instructions, experience or other comments.": "このフィールドを使用して、テキスト形式のレシピ、手順、経験、その他のコメントを追加することができます。",
-  "Recipe, instructions, comments, etc.": "レシピ、説明書、コメントなど",
+  "PLACEHOLDER_TAG": "例:ベジタリアン、速い、鶏肉や魚など",
+  "PLACEHOLDER_CATEGORY": "例:スープやデザート",
+  "Go to my meals": "私のレシピに行く",
+  "Import": "取り込み",
+  "Import Meal": "レシピを取り込む",
+  "Successfully imported meal": "レシピの取り込みに成功しました",
+  "Plan Meal": "料理予定",
+  "You can use this field to add a recipe in text form, instructions, experience or other comments.": "この枠を利用して、レシピやコメントを追加することができます。",
+  "Recipe, instructions, comments, etc.": "レシピ、手順、コメントなど",
   "Delete Account": "アカウント削除",
-  "Are you sure you want to delete your Emilia Account?": "本当にエミリアアカウントを削除しますか?",
-  "This cannot be undone.": "こは元に戻せません。",
+  "Are you sure you want to delete your Emilia Account?": "本当にアカウントを削除しますか?",
+  "This cannot be undone.": "この操作は元に戻せません。",
   "No, cancel.": "いいえ、キャンセルしてください。",
   "Yes, delete my account for good.": "はい、永久に私のアカウントを削除してください。",
   "Your account is being deleted": "あなたのアカウントは削除されます",
-  "Your Account has been deleted": "お客様のアカウントが削除されました",
+  "Your Account has been deleted": "あなたのアカウントが削除されました",
   "You will be logged out now.": "現在ログアウトしています。",
   "OK": "OK"
 }