]> git.openstreetmap.org Git - rails.git/blobdiff - script/locale/diff
Use LoadFile(*DATA) to load the __DATA__ section as YAML
[rails.git] / script / locale / diff
index 0606791ba7aa38cc0d4b375264ae9135a0b7c5e7..0335fe9836037e8195db56e699b42a70e5e2ea98 100755 (executable)
@@ -2,7 +2,7 @@
 use feature ':5.10';
 use strict;
 use warnings;
-use YAML::Syck qw(Load LoadFile);
+use YAML::Syck qw(LoadFile);
 use Test::Differences;
 use Pod::Usage ();
 use Getopt::Long ();
@@ -149,7 +149,7 @@ sub prune_untranslated_with_blacklist
     my %keys;
     @keys{@keys} = ();
 
-    my $end_yaml = Load(join '', <DATA>);
+    my $end_yaml = LoadFile(*DATA);
     my $untranslated_values = $end_yaml->{untranslated_values};
     my $default = $untranslated_values->{default};
     my $this_language = $untranslated_values->{$language} || {};
@@ -250,6 +250,7 @@ untranslated_values:
     layouts.project_name.h1: true
     layouts.project_name.title: true
     site.index.license.project_url: true
+    browse.relation_member.entry: true
 
   de:
     activerecord.attributes.message.sender: true
@@ -296,3 +297,9 @@ untranslated_values:
 
     # http://creativecommons.org/licenses/by-sa/2.0/
     site.index.license.license_url: true
+
+    # {{id}}
+    printable_name.with_id: true
+    
+    # {{name}} ({{id}})
+    printable_name.with_name: true