]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - languages/classes/LanguageJa.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / languages / classes / LanguageJa.php
index c5a992d5a02158c968ee5d5fcab68bea70152999..bf3e167d078093c27a89ba9114d01b3a588a2348 100644 (file)
@@ -1,4 +1,25 @@
 <?php
+/**
+ * Japanese (日本語) specific code.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup Language
+ */
 
 /**
  * Japanese (日本語)
@@ -6,6 +27,11 @@
  * @ingroup Language
  */
 class LanguageJa extends Language {
+
+       /**
+        * @param string $string
+        * @return string
+        */
        function segmentByWord( $string ) {
                // Strip known punctuation ?
                // $s = preg_replace( '/\xe3\x80[\x80-\xbf]/', '', $s ); # U3000-303f
@@ -23,8 +49,13 @@ class LanguageJa extends Language {
                return $s;
        }
 
-       # Italic is not appropriate for Japanese script
-       # Unfortunately most browsers do not recognise this, and render <em> as italic
+       /**
+        * Italic is not appropriate for Japanese script
+        * Unfortunately most browsers do not recognise this, and render `<em>` as italic
+        *
+        * @param string $text
+        * @return string
+        */
        function emphasize( $text ) {
                return $text;
        }