[Rt-commit] r5038 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Mon Apr 17 09:02:35 EDT 2006


Author: ruz
Date: Mon Apr 17 09:02:32 2006
New Revision: 5038

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/CurrentUser.pm

Log:
 r2386 at cubic-pc:  cubic | 2006-04-17 16:47:15 +0400
 * don't test for I18N unless language is loaded


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/CurrentUser.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/CurrentUser.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/CurrentUser.pm	Mon Apr 17 09:02:32 2006
@@ -343,8 +343,12 @@
 ok ($lh != undef);
 ok ($lh->isa('Locale::Maketext'));
 is ($cu->loc('TEST_STRING'), "Concrete Mixer", "Localized TEST_STRING into English");
-ok ($lh = $cu->LanguageHandle('fr'));
-is ($cu->loc('Before'), "Avant", "Localized TEST_STRING into Frenc");
+SKIP: {
+    skip "French localization is not enabled", 2
+        unless grep $_ && $_ =~ /^(\*|fr)$/, RT->Config->Get('LexiconLanguages');
+    ok ($lh = $cu->LanguageHandle('fr'));
+    is ($cu->loc('Before'), "Avant", "Localized TEST_STRING into French");
+}
 
 =end testing
 


More information about the Rt-commit mailing list