Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: app name localization #276

Merged
merged 7 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY"/>

<application
android:label="DPIP 防災"
android:label="@string/app_name"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down
3 changes: 3 additions & 0 deletions android/app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resource>
<string name="app_name">DPIP防災</string>
</resource>
3 changes: 3 additions & 0 deletions android/app/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resource>
<string name="app_name">DPIP 재해</string>
</resource>
3 changes: 3 additions & 0 deletions android/app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resource>
<string name="app_name">DPIP 防災</string>
</resource>
3 changes: 3 additions & 0 deletions android/app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resource>
<string name="app_name">DPIP 防災</string>
</resource>
3 changes: 3 additions & 0 deletions android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resource>
<string name="app_name">DPIP</string>
</resource>
18 changes: 18 additions & 0 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
529C27C82C93F7B200AAFAB6 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 529C27C62C93F7B200AAFAB6 /* InfoPlist.strings */; };
632125292C2EA17900A088F8 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 632125282C2EA17900A088F8 /* GoogleService-Info.plist */; };
63F1FCBE2C8D48D300693F0C /* update.aiff in Resources */ = {isa = PBXBuildFile; fileRef = 63F1FCBB2C8D48D300693F0C /* update.aiff */; };
63F1FCBF2C8D48D300693F0C /* rain.aiff in Resources */ = {isa = PBXBuildFile; fileRef = 63F1FCB82C8D48D300693F0C /* rain.aiff */; };
Expand Down Expand Up @@ -73,6 +74,10 @@
5228AD5A2C2EE45D007635F5 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
529BD5D12C48C28B00EFE088 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Main.strings"; sourceTree = "<group>"; };
529BD5D22C48C28B00EFE088 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
529C27C92C93F7B900AAFAB6 /* zh */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh; path = zh.lproj/InfoPlist.strings; sourceTree = "<group>"; };
529C27CC2C93F7BC00AAFAB6 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/InfoPlist.strings; sourceTree = "<group>"; };
529C27CE2C947EE800AAFAB6 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
529C27CF2C947EFB00AAFAB6 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/InfoPlist.strings; sourceTree = "<group>"; };
52E010A32C7C5DDC00C87792 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Main.strings; sourceTree = "<group>"; };
52E010A42C7C5DDC00C87792 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
632125282C2EA17900A088F8 /* GoogleService-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -206,6 +211,7 @@
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
632125282C2EA17900A088F8 /* GoogleService-Info.plist */,
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
529C27C62C93F7B200AAFAB6 /* InfoPlist.strings */,
);
path = Runner;
sourceTree = "<group>";
Expand Down Expand Up @@ -327,6 +333,7 @@
63F1FCC02C8D48D300693F0C /* eew.aiff in Resources */,
63F1FCC12C8D48D300693F0C /* int_report.aiff in Resources */,
63F1FCC22C8D48D300693F0C /* info.aiff in Resources */,
529C27C82C93F7B200AAFAB6 /* InfoPlist.strings in Resources */,
63F1FCC32C8D48D300693F0C /* normal.aiff in Resources */,
63F1FCC42C8D48D300693F0C /* warn.aiff in Resources */,
63F1FCC52C8D48D300693F0C /* weather.aiff in Resources */,
Expand Down Expand Up @@ -483,6 +490,17 @@
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
529C27C62C93F7B200AAFAB6 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
529C27C92C93F7B900AAFAB6 /* zh */,
529C27CC2C93F7BC00AAFAB6 /* ko */,
529C27CE2C947EE800AAFAB6 /* zh-Hant */,
529C27CF2C947EFB00AAFAB6 /* ja */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down
2 changes: 1 addition & 1 deletion ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>DPIP 防災</string>
<string>DPIP</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
1 change: 1 addition & 0 deletions ios/Runner/ja.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"CFBundleDisplayName" = "DPIP防災";
1 change: 1 addition & 0 deletions ios/Runner/ko.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"CFBundleDisplayName" = "DPIP 재해";
1 change: 1 addition & 0 deletions ios/Runner/zh-Hant.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"CFBundleDisplayName" = "DPIP 防災";
1 change: 1 addition & 0 deletions ios/Runner/zh.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"CFBundleDisplayName" = "DPIP 防灾";
Loading