Page MenuHomePhabricator

D14228.diff
No OneTemporary

D14228.diff

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

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)

Event Timeline