Mercurial > pub > Impl
comparison Lib/IMPL/Resources/StringLocaleMap.pm @ 380:1eca08048ba9
TTContext migrated to the unified localization mechanism IMPL::Resources::StringLocaleMap
author | cin |
---|---|
date | Fri, 17 Jan 2014 15:58:57 +0400 |
parents | a471e8b77544 |
children | 99ac2e19c0cc |
comparison
equal
deleted
inserted
replaced
379:a471e8b77544 | 380:1eca08048ba9 |
---|---|
34 sub GetString { | 34 sub GetString { |
35 my ($this,$id,$args) = @_; | 35 my ($this,$id,$args) = @_; |
36 | 36 |
37 my $locale = Resources->currentLocale || 'default'; | 37 my $locale = Resources->currentLocale || 'default'; |
38 my $map; | 38 my $map; |
39 | |
40 warn "id: $id,\t\tlocale: $locale"; | |
39 | 41 |
40 if(not $map = $this->_maps->{$locale}) { | 42 if(not $map = $this->_maps->{$locale}) { |
41 $map = $this->LoadMap($locale,$this->_maps->{default}); | 43 $map = $this->LoadMap($locale,$this->_maps->{default}); |
42 if (is($map,StringMap)) { | 44 if (is($map,StringMap)) { |
43 #nop | 45 #nop |