Commits

Nick Freear  committed 09b664e

Improvements to MY_Language.php comments, .htaccess

  • Participants
  • Parent commits ab30dc0

Comments (0)

Files changed (2)

     # Protect hidden files.
     RewriteRule ^\.(hg|git).*$ index.php/_403_ [QSA,L]
 
+    # Finally, point to the front controller.
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ index.php/$1 [QSA,L]

File system/application/libraries/MY_Language.php

 	
 /** 
  * Translate strings to the page language or a given language.
- *<code>
- * <?= t("Your cloud !title has been created!",  //app./views/cloud/cloud_added.php
- *     array('!title' => anchor("cloud/view/$cloud->cloud_id", $cloud->title))) ?>
- *</code>
- *
+ <code>
+   <?= ///Translators: this substitutes !title with a dynamic link.
+      t("Your cloud !title has been created!",  //app./views/cloud/cloud_added.php
+        array('!title' => anchor("cloud/view/$cloud->cloud_id", $cloud->title))) ?>
+
+   <?= ///Translators: replaces !site-name! with the predefined $config variable.
+      t("Visit !site-name!.") ?>
+ </code>
+
  * @param  string $string A string containing the English string to translate.
  * @param  array  $args   An associative array of replacements to make after translation.
  *   Incidences of any key in this array are replaced with the corresponding value. (..):