Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14237614
D14228.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14228.diff
View Options
diff --git a/src/internationalization/PhutilTranslator.php b/src/internationalization/PhutilTranslator.php
--- a/src/internationalization/PhutilTranslator.php
+++ b/src/internationalization/PhutilTranslator.php
@@ -160,6 +160,13 @@
}
return $plural;
+ case 'ko_KR':
+ list($singular, $plural) = $translations;
+ if ($variant == 1) {
+ return $singular;
+ }
+ return $plural;
+
default:
throw new Exception(pht("Unknown language '%s'.", $this->language));
}
diff --git a/src/internationalization/locales/PhutilKoreanLocale.php b/src/internationalization/locales/PhutilKoreanLocale.php
new file mode 100644
--- /dev/null
+++ b/src/internationalization/locales/PhutilKoreanLocale.php
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * The Korean (Republic of Korea) Locale
+ */
+final class PhutilKoreanLocale extends PhutilLocale {
+
+ public function getLocaleCode() {
+ return 'ko_KR';
+ }
+
+ public function getLocaleName() {
+ return pht('Korean (Republic of Korea)');
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 13, 1:18 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6876097
Default Alt Text
D14228.diff (1 KB)
Attached To
Mode
D14228: Add Korean locales
Attached
Detach File
Event Timeline
Log In to Comment