]> git.proxmox.com Git - proxmox-i18n.git/blobdiff - po2js.pl
d/copyright: update years
[proxmox-i18n.git] / po2js.pl
index f4060aada61546a28653ea634ea868cc077cbc37..681a3679fc0d631c3ca084f86621b8c20b805b0e 100755 (executable)
--- a/po2js.pl
+++ b/po2js.pl
@@ -88,7 +88,8 @@ foreach my $filename (@ARGV) {
 
 my $json = to_json($catalog, {canonical => 1, utf8 => 1});
 
-my $content = "// $options->{v}\n"; # write version to beginning
+my $version = $options->{v} // ("dev-build " . localtime());
+my $content = "// $version\n"; # write version to the beginning to better avoid stale cache
 
 my $outfile = $options->{o};