juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18030: LJSUP-6154 Developers

Committer: iaskarov
LJSUP-6154 Developers
Added get_effective_lang() for s2 (returns remote's current language)
U   trunk/bin/upgrading/s2layers/core1.s2
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/bin/upgrading/s2layers/core1.s2
===================================================================
--- trunk/bin/upgrading/s2layers/core1.s2	2011-01-14 10:25:09 UTC (rev 18029)
+++ trunk/bin/upgrading/s2layers/core1.s2	2011-01-17 09:20:34 UTC (rev 18030)
@@ -74,7 +74,6 @@
 
     function builtin css_url_value : string
     "If the string contains a valid HTTP or HTTPS URL it is returned. Otherwise, an empty string is returned.";
-
 }
 
 class Color
@@ -1967,6 +1966,9 @@
     return "Unknown View";
 }
 
+function builtin get_effective_lang() : string
+"Returns remote's language";
+
 function lang_metadata_title(string which) [fixed] : string
 "Get a human-readable caption for a metadata key. Layers shouldn't override this, but should instead set the relevant string properties."
 {

Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2011-01-14 10:25:09 UTC (rev 18029)
+++ trunk/cgi-bin/LJ/S2.pm	2011-01-17 09:20:34 UTC (rev 18030)
@@ -4421,5 +4421,10 @@
     return join(' ', @out);
 }
 
+sub get_effective_lang
+{
+    return LJ::Lang::get_effective_lang();
+}
 
+
 1;

Tags: juks, livejournal, pm, s2
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments