aboutsummaryrefslogtreecommitdiffstats
path: root/include/language.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-13 16:01:00 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-13 16:01:00 -0700
commitd6f98e651170827453a27fec367f0f8059f3a002 (patch)
tree5c982bbde9812fe747648a5890c4be3a3c70a487 /include/language.php
parentc3c202d650506ea3ed3ba9bdb92aae0b065d5e47 (diff)
downloadvolse-hubzilla-d6f98e651170827453a27fec367f0f8059f3a002.tar.gz
volse-hubzilla-d6f98e651170827453a27fec367f0f8059f3a002.tar.bz2
volse-hubzilla-d6f98e651170827453a27fec367f0f8059f3a002.zip
product was a bad string to use because we may require it for e-commerce, and RED_PLATFORM is equally problematic for other reasons.
Diffstat (limited to 'include/language.php')
-rw-r--r--include/language.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/language.php b/include/language.php
index 0af72142f..7dbe3dd02 100644
--- a/include/language.php
+++ b/include/language.php
@@ -159,10 +159,10 @@ function t($s, $ctx = '') {
if (x($a->strings, $cs)) {
$t = $a->strings[$cs];
- return ((is_array($t)) ? translate_product($t[0]) : translate_product($t));
+ return ((is_array($t)) ? translate_projectname($t[0]) : translate_projectname($t));
}
- return translate_product($s);
+ return translate_projectname($s);
}
/**
@@ -170,9 +170,9 @@ function t($s, $ctx = '') {
* Merging strings from different project names is problematic so we'll do that with a string replacement
*/
-function translate_product($s) {
+function translate_projectname($s) {
- return str_replace(array('$product','$Product'),array(RED_PLATFORM,ucfirst(RED_PLATFORM)),$s);
+ return str_replace(array('$projectname','$Projectname'),array(PLATFORM_NAME,ucfirst(PLATFORM_NAME)),$s);
}