diff --git a/docs/upgrades/upgrade_6.6.1-6.6.2.sql b/docs/upgrades/upgrade_6.6.1-6.6.2.sql index 3bee65d9e..3d6068b35 100644 --- a/docs/upgrades/upgrade_6.6.1-6.6.2.sql +++ b/docs/upgrades/upgrade_6.6.1-6.6.2.sql @@ -1,6 +1,4 @@ insert into webguiVersion values ('6.6.2','upgrade',unix_timestamp()); alter table Shortcut add disableContentLock int(11) NOT NULL default '0'; -alter table SyndicatedContent add column displayMode varchar(20) not null default 'interleaved'; -alter table SyndicatedContent add column hasTerms varchar(255) not null; update template set template='

Price:
Product Number:




Features


Benefits


Specifications

:

Accessories


Related Products


' where assetId='PBtmpl0000000000000056'; update template set template='^StyleSheet(^Extras;/adminConsole/adminConsole.css);\r\n^JavaScript(^Extras;/adminConsole/adminConsole.js);\r\n\r\n
\r\n \r\n \" target=\"_blank\">\"?\"\r\n \r\n
\r\n
\r\n \" border=\"0\" title=\"\" alt=\"\" />\r\n
\r\n
\r\n\"*\"\r\n
\r\n
\r\n \" border=\"0\" title=\"\" alt=\"\" />\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n  \r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n  \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \" >
\r\n
\r\n
\r\n
\r\n \">
\r\n ^AdminToggle;
\r\n ^LoginToggle;
\r\n
\r\n
\r\n\r\n' where assetId='PBtmpl0000000000000001'; diff --git a/docs/upgrades/upgrade_6.6.3-6.7.0.sql b/docs/upgrades/upgrade_6.6.3-6.7.0.sql index c4f3075cb..6f7b5391c 100644 --- a/docs/upgrades/upgrade_6.6.3-6.7.0.sql +++ b/docs/upgrades/upgrade_6.6.3-6.7.0.sql @@ -1,2 +1,4 @@ insert into webguiVersion values ('6.7.0','upgrade',unix_timestamp()); +alter table SyndicatedContent add column displayMode varchar(20) not null default 'interleaved'; +alter table SyndicatedContent add column hasTerms varchar(255) not null; diff --git a/sbin/updateTranslations.pl b/sbin/updateTranslations.pl deleted file mode 100755 index c319f0b33..000000000 --- a/sbin/updateTranslations.pl +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; -use Data::Dumper; -use Getopt::Long; - -our $webguiRoot; - -BEGIN { - $webguiRoot = ".."; - unshift (@INC, $webguiRoot."/lib"); -} - -my $language='English'; -my $namespace; -my $help; -my $test; - -GetOptions( - 'language=s'=>\$language, - 'namespace=s'=>\$namespace, - 'help'=>\$help, - 'test'=>\$test - ); - -if ((!$help && !$namespace) or $help){ - print </ translation files. It sorts the entries -by key value and takes care of escaping automatically. - -Options: - - --language The language you're adding an entry for. - Defaults to English - - --help Display this help message and exit. - - --namespace The name of the file you want to manipulate - in "lib/WebGUI/i18n/" WITHOUT the .pm - extension. So, if you're editing the "Macro_GroupAdd.pm" - file, it's "Macro_GroupAdd". - - --test Don't edit the actual file, but create a copy with ".test" - appended to the name. - -STOP - exit; -} - -die('You need to give us a namespace to edit') if (!$namespace); - -my $tranmodule=join('::',('WebGUI','i18n',$language,$namespace)); -eval "use $tranmodule;"; - -if (($@)) { - die('Either that namespace does not exist or you spelled it incorrectly. Please try again'); -} - -my $variable='$'.$tranmodule.'::I18N'; -my $i18n=eval "$variable"; - -print "\nEnter a new key value to create a new entry.\nCurrent Keys:\n\n"; -foreach ((keys %$i18n)) { - print "$_\n"; -} - -my $key=''; -while (lc($key) ne 'quit') { - print "\n\nNew Key, or quit to stop:\n"; - $key=; - chomp($key); - next if(!$key); - last if(lc($key) eq 'quit'); - if (! defined $i18n->{$key}) { - print "\nNew key. Ok?\n"; - my $input=; - chomp($input); - if (lc(substr($input,0,1)) eq 'y') { - get_info($key,$i18n); - } - } else { - print "\nErm. . . That key's already in use. Please try again.\n"; - } -} - - -################################################################################ -sub save_file{ - open(OUTPUT,">","../lib/WebGUI/i18n/$language/$namespace.pm".(($test) ? '.test' : '')) or die($!); - $Data::Dumper::Varname='I18N'; - $Data::Dumper::Sortkeys=1; - - print OUTPUT "package $tranmodule;\n\n"; - my $output=Dumper($i18n); - $output =~ s/^\$I18N1/\$I18N/i; - print OUTPUT "our ".$output; - print OUTPUT "1;"; - close OUTPUT; - print "Saved!!\n"; -} -######################################## - - -################################################################################ -sub get_info{ - my $key=shift; - my $i18n=shift; - print "\nEnter the new information for this key. Press Ctrl-D to save\n"; - my @info=; - print "\n\nOk? \n"; - my $input=; - chomp($input); - if (lc(substr($input,0,1)) eq 'y') { - my $string=join("",@info); - chomp($string); - $i18n->{$key}->{message}=$string; - $i18n->{$key}->{lastUpdated}=time; - save_file(); - } -} -########################################