aboutsummaryrefslogtreecommitdiffstats
path: root/copypage.pl
Commit message (Collapse)AuthorAgeFilesLines
* Updated copypage.pl usage and removed errors / warnings when it is run ↵Hans Fredrik Nordhaug2021-01-031-13/+18
| | | | | | | without arguments. Also removed remaining code for and info about the "-n" option that was removed in May 2018.
* Clarify message about missing language.confHolger Wansing2020-08-071-1/+1
|
* Fixed small English syntax errors.Sebastiano Pistore2019-06-101-1/+1
| | | | The executable code has NOT been modified.
* Update boilerplate on copypage.plSteve McIntyre2018-05-311-1/+4
|
* Major updates to perl scriptsSteve McIntyre2018-05-301-82/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new git backend in VCS_git.pm Switch from an old-style set of function calls to an OO API. This allows for initialisation and some state to be kept in the VCS_git.pm module - namely a per-file cache of commit hashes for a massive performance boost when doing lots of lookups. Extend the API with 2 new utility functions: * get_oldest_revision() * next_revision() Extended the vcs_cmp_rev() function to take a filename too. Add a test harness to validate the git and cvs backends. Add switch_to_git_translations.pl to walk the tree and switch from cvs revisions to git commit hashes in translation-check headers. Change all of our local scripts to use the new Local::VCS frontend *where it makes sense*. Some scripts will behave slightly differently, as the new world can't exactly match the old behaviour. CVS version numbers check_desc_trans.pl: 1.9 -> 1.10 check_trans.pl: 1.93 -> 1.94 copypage.pl: 1.42 -> 1.43 karma.pl: 1.6 -> 1.7 remove_stale.pl: 1.22 -> 1.23 smart_change.pl: 1.8 -> 1.9 stattrans.pl: 1.127 -> 1.128 switch_to_git_translations.pl: INITIAL -> 1.1 touch_translations.pl: 1.9 -> 1.10 vcs-test.pl: INITIAL -> 1.1 Perl/Local/Util.pm: 1.4 -> 1.5 Perl/Local/VCS.pm: 1.3 -> 1.4 Perl/Local/VCS_CVS.pm: 1.13 -> 1.14 Perl/Local/VCS_git.pm: 1.12 -> 1.13 Perl/Webwml/Langs.pm: 1.5 -> 1.6 Perl/Webwml/TransIgnore.pm: 1.3 -> 1.4
* fix #690331 copypage and stattrans cleaningnobuyuki morita2012-12-021-104/+1
| | | | | | CVS version numbers copypage.pl: 1.41 -> 1.42
* create Makefile if(source have it && dest do not);nobuyuki morita2012-12-021-8/+8
| | | | | | | | it did not create at all if the directory exists CVS version numbers copypage.pl: 1.40 -> 1.41
* quirty UTF-8 fix (lots of lines needs to be dropped, Madamezou, Perl clean ↵David Prévot2011-06-041-1/+1
| | | | | | | | up punishment?) CVS version numbers copypage.pl: 1.39 -> 1.40
* Declare options before using them. Give the usage message a chance to display.Marcin Owsiany2010-11-031-10/+10
| | | | | | CVS version numbers copypage.pl: 1.38 -> 1.39
* Put -l in the usageJavier Fernandez-Sanguino Peña2010-10-161-1/+1
| | | | | | CVS version numbers copypage.pl: 1.37 -> 1.38
* Allow language and maintainer to be set in the command line and document the ↵Javier Fernandez-Sanguino Peña2010-10-161-4/+21
| | | | | | | | use of environment variables CVS version numbers copypage.pl: 1.36 -> 1.37
* Make it possible to not check CVS through CLI option, also describe the CVS ↵Javier Fernandez-Sanguino Peña2010-10-151-7/+21
| | | | | | | | check in the usage. CVS version numbers copypage.pl: 1.35 -> 1.36
* Code rewrite to clarify what the code does and the different situations, ↵Javier Fernandez-Sanguino Peña2010-10-151-42/+50
| | | | | | | | avoid nested ifs as this seems to confuse people CVS version numbers copypage.pl: 1.34 -> 1.35
* Make sure we use english locale so that we can interpret properly the outputJavier Fernandez-Sanguino Peña2010-10-151-1/+1
| | | | | | CVS version numbers copypage.pl: 1.33 -> 1.34
* Improve code that checks for files in the AtticJavier Fernandez-Sanguino Peña2010-10-151-14/+26
| | | | | | CVS version numbers copypage.pl: 1.32 -> 1.33
* Make use of 'cvs status' to check files in the repository in order to detectJavier Fernandez-Sanguino Peña2010-08-081-0/+61
| | | | | | | | removed files or out-of-date CVS copies and warn translators. CVS version numbers copypage.pl: 1.31 -> 1.32
* Convert encoding of perl script to utf8Bas Zoetekouw2008-11-221-1/+1
| | | | | | | | CVS version numbers copypage.pl: 1.30 -> 1.31 i18nwwwfix.pl: 1.1 -> 1.2 remove_stale.pl: 1.17 -> 1.18
* Open the files _after_ we try to retrieve the VCS revision so we don't leave ↵Rhonda D'Vine2008-10-161-8/+8
| | | | | | | | empty new files in case of troubles CVS version numbers copypage.pl: 1.29 -> 1.30
* Use Local::VCS instead of Local::VCS_CVSBas Zoetekouw2008-09-291-1/+1
| | | | | | | | | CVS version numbers check_desc_trans.pl: 1.5 -> 1.6 copypage.pl: 1.28 -> 1.29 Perl/Webwml/Langs.pm: 1.4 -> 1.5 Perl/Webwml/TransIgnore.pm: 1.2 -> 1.3
* abstract VCS file revision extraction, needed for VCS switchRhonda D'Vine2008-09-241-20/+10
| | | | | | CVS version numbers copypage.pl: 1.27 -> 1.28
* Changed by surname.Peter Karlsson2008-07-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | CVS version numbers check_desc_trans.pl: 1.2 -> 1.3 check_trans.pl: 1.63 -> 1.64 copypage.pl: 1.26 -> 1.27 remove_stale.pl: 1.16 -> 1.17 danish/international/Swedish/bidragslamnare.wml: 1.10 -> 1.11 danish/international/Swedish/index.wml: 1.6 -> 1.7 danish/international/Swedish/relaterade.wml: 1.9 -> 1.10 english/devel/website/tc.data: 1.109 -> 1.110 english/international/Swedish/bidragslamnare.wml: 1.25 -> 1.26 english/international/Swedish/index.wml: 1.7 -> 1.8 english/international/Swedish/relaterade.wml: 1.12 -> 1.13 french/international/Swedish/bidragslamnare.wml: 1.4 -> 1.5 french/international/Swedish/index.wml: 1.2 -> 1.3 french/international/Swedish/relaterade.wml: 1.3 -> 1.4 german/international/Swedish/bidragslamnare.wml: 1.25 -> 1.26 german/international/Swedish/index.wml: 1.14 -> 1.15 german/international/Swedish/relaterade.wml: 1.20 -> 1.21 swedish/News/weekly/copyissue.pl: 1.21 -> 1.22 swedish/international/Swedish/bidragslamnare.wml: 1.23 -> 1.24 swedish/international/Swedish/index.wml: 1.6 -> 1.7 swedish/international/Swedish/ordlista.wml: 1.27 -> 1.28 swedish/international/Swedish/relaterade.wml: 1.12 -> 1.13
* Applied patch from Luca Monducci <luca.mo@tiscali.it>:Peter Karlsson2004-02-121-10/+33
| | | | | | | | | Allow setting the translation maintainer name from language.conf or the environment. CVS version numbers copypage.pl: 1.25 -> 1.26
* Only warn for pages already translated. Makes it easier to use wildcards.Peter Karlsson2003-12-121-1/+5
| | | | | | CVS version numbers copypage.pl: 1.24 -> 1.25
* .src pages are also translatedPeter Karlsson2003-07-231-1/+1
| | | | | | CVS version numbers copypage.pl: 1.23 -> 1.24
* Since we are forced to use entities at some places in the English sourcePeter Karlsson2003-01-181-4/+28
| | | | | | | | | | files, when copying the page first decode any entities for the ISO 8859-1 area. The entities are then re-introduced if required by the output encoding. CVS version numbers copypage.pl: 1.22 -> 1.23
* More intelligent handling of ISO 8859-1 characters when copying pages toPeter Karlsson2002-12-051-18/+54
| | | | | | | | | | other ISO 8859 encodings: Only recode those high-bit characters that differ from ISO 8859-1 into entities, keeping as many characters as possible in their native form. CVS version numbers copypage.pl: 1.21 -> 1.22
* Fixed one error message. Thanks to Michael Banck.Rhonda D'Vine2002-11-291-1/+1
| | | | | | CVS version numbers copypage.pl: 1.20 -> 1.21
* Removed copy handling -- sync only support from now on.Rhonda D'Vine2002-10-301-20/+8
| | | | | | CVS version numbers copypage.pl: 1.19 -> 1.20
* Do not replace accented letters by HTML entities wnen encoding is setDenis Barbier2002-08-281-4/+4
| | | | | | | | to iso-8859-1 and iso-8859-15; previously only iso-8859-1 was checked. CVS version numbers copypage.pl: 1.18 -> 1.19
* Used named entities instead of numeric when encoding latin1 charactersPeter Karlsson2002-08-281-8/+21
| | | | | | CVS version numbers copypage.pl: 1.17 -> 1.18
* If destination language's encoding is something other than iso-8859-1,Peter Karlsson2002-08-281-1/+28
| | | | | | | | encode all non-ASCII characters as entities. CVS version numbers copypage.pl: 1.16 -> 1.17
* Applied changes based on patch from Denis Barbier: Checks the language.confPeter Karlsson2002-07-191-10/+30
| | | | | | | | | | for the keyword "sync", and if that is found, does not copy the Makefile over to the new directory, but instead creates a simple Makefile which just includes the English version. CVS version numbers copypage.pl: 1.15 -> 1.16
* The translation-check header doesn't need to go first anymore. Still make itPeter Karlsson2002-03-271-10/+1
| | | | | | | | go after other headers for readability. CVS version numbers copypage.pl: 1.14 -> 1.15
* Never copy $Id lines.Peter Karlsson2002-02-151-2/+4
| | | | | | CVS version numbers copypage.pl: 1.13 -> 1.14
* Handle directories without MakefilesTollef Fog Heen2001-07-311-4/+12
| | | | | | | | | | | Handle directories with depth > 1 (which haven't been copied before) Pick up language from $ENV{DWWW_LANG}, which makes it possible to override without changing the default language. CVS version numbers copypage.pl: 1.12 -> 1.13
* Use .title file if such exists (news)Peter Karlsson2001-05-021-1/+34
| | | | | | CVS version numbers copypage.pl: 1.11 -> 1.12
* Fixed case where translation-check header was not added.Peter Karlsson2001-04-241-0/+5
| | | | | | CVS version numbers copypage.pl: 1.10 -> 1.11
* More magic to insert the translation-check header at the right place - itPeter Karlsson2001-04-011-2/+11
| | | | | | | | | should always be inserted after all initial <define-tag> and #use statements, before the body contents starts. CVS version numbers copypage.pl: 1.9 -> 1.10
* Comment noted copypage.conf, but it uses language.conf.Dutch Language Team2001-03-291-1/+1
| | | | | | CVS version numbers copypage.pl: 1.8 -> 1.9
* Try to keep any <define-tag> before the translation-check linePeter Karlsson2000-11-161-1/+1
| | | | | | CVS version numbers copypage.pl: 1.7 -> 1.8
* The /o modifier isn't very smart to use when we actually *need* to recompilePeter Karlsson2000-11-161-1/+1
| | | | | | | | the pattern some times... CVS version numbers copypage.pl: 1.6 -> 1.7
* moved $language setting before usage message otherwise Perl prints a warning ↵Josip Rodin2000-11-121-14/+13
| | | | | | | | about uninitialized variable; minor fixes in the message CVS version numbers copypage.pl: 1.5 -> 1.6
* Updated to use the translation-check templatePeter Karlsson2000-10-031-79/+94
| | | | | | | | CVS version numbers copypage.pl: 1.4 -> 1.5 swedish/News/weekly/copyissue.pl: 1.5 -> 1.6 swedish/security/copyadvisory.pl: 1.2 -> 1.3
* Does not overwrite if destination file existsSwedish Language Team2000-05-171-2/+3
| | | | | | | | CVS version numbers copypage.pl: 1.3 -> 1.4 swedish/News/weekly/copyissue.pl: 1.2 -> 1.3 swedish/security/copyadvisory.pl: 1.1 -> 1.2
* BugfixSwedish Language Team2000-03-081-1/+1
| | | | | | CVS version numbers copypage.pl: 1.2 -> 1.3
* BugfixSwedish Language Team2000-03-071-3/+7
| | | | | | CVS version numbers copypage.pl: 1.1 -> 1.2
* Added script that automates creation of new translations; it will copy theSwedish Language Team2000-02-261-0/+125
requested page from the English directory to the local translation directory (as specified in language.conf) and add the '<!--translation x.x-->' line. If the destination directory does not exist, it will be created and the Makefile copied. It will unfortunately not translate the page for you... :-) CVS version numbers copypage.pl: INITIAL -> 1.1

© 2014-2024 Faster IT GmbH | imprint | privacy policy