aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/src/Language/LanguageInterface.php
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-12-31 10:42:08 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-12-31 10:42:08 +0100
commit7bf7f8180dbc3a89824815de3bc1e4f40857d2f6 (patch)
tree34e51239e753204989af7d82793c24bb3b304ecb /library/intl/src/Language/LanguageInterface.php
parent24a16434bccb7b41d026767f81ffe5f060d566bf (diff)
downloadvolse-hubzilla-7bf7f8180dbc3a89824815de3bc1e4f40857d2f6.tar.gz
volse-hubzilla-7bf7f8180dbc3a89824815de3bc1e4f40857d2f6.tar.bz2
volse-hubzilla-7bf7f8180dbc3a89824815de3bc1e4f40857d2f6.zip
Revert "Revert "Language names via intl library.""
This reverts commit 4f35efa0bad4ae6489b63f3eebafe6542d654094.
Diffstat (limited to 'library/intl/src/Language/LanguageInterface.php')
-rw-r--r--library/intl/src/Language/LanguageInterface.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/library/intl/src/Language/LanguageInterface.php b/library/intl/src/Language/LanguageInterface.php
new file mode 100644
index 000000000..612389142
--- /dev/null
+++ b/library/intl/src/Language/LanguageInterface.php
@@ -0,0 +1,37 @@
+<?php
+
+namespace CommerceGuys\Intl\Language;
+
+interface LanguageInterface
+{
+ /**
+ * Gets the two-letter language code.
+ *
+ * @return string
+ */
+ public function getLanguageCode();
+
+ /**
+ * Sets the two-letter language code.
+ *
+ * @param string $languageCode The two-letter language code.
+ */
+ public function setLanguageCode($languageCode);
+
+ /**
+ * Gets the language name.
+ *
+ * Note that certain locales have incomplete translations, in which
+ * case the english version of the language name is used instead.
+ *
+ * @return string
+ */
+ public function getName();
+
+ /**
+ * Sets the language name.
+ *
+ * @param string $name The language name.
+ */
+ public function setName($name);
+}