java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml | 20
java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml | 36 -
scripts/spelling/check.sh | 26
scripts/spelling/check_all.sh | 23
scripts/spelling/check_en_US.sh | 7
scripts/spelling/ignored_en_US.txt | 265
++++++++++
scripts/spelling/onlySource.xslt | 16
scripts/spelling/onlyTarget.xslt | 16
8 files changed, 380 insertions(+), 29 deletions(-)
New commits:
commit 752c64ae332a839e92ad0bb6fc09826e1574cac1
Author: Lukas Zapletal <lzap+git(a)redhat.com>
Date: Thu Sep 23 11:21:09 2010 +0200
resource spelling script and several typo corrections
diff --git a/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml
b/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml
index 2fd88cc..397b958 100644
--- a/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml
+++ b/java/code/src/com/redhat/rhn/frontend/strings/java/StringResource_en_US.xml
@@ -970,7 +970,7 @@
http://www.oasis-open.org/committees/xliff/documents/xliff-core-1.1.xsd&q...
</context-group>
</trans-unit>
<trans-unit id="testMessage.html">
- <source><p>You donot have enough entitlements for
<strong> <a href="http://www.redhat.com">{0}
systems</a></strong>.</p></source>
+ <source><p>You do not have enough entitlements for
<strong> <a href="http://www.redhat.com">{0}
systems</a></strong>.</p></source>
<context-group name="ctx">
<context context-type="sourcefile">Test Message -
ignore</context>
</context-group>
@@ -1553,7 +1553,7 @@
http://www.oasis-open.org/committees/xliff/documents/xliff-core-1.1.xsd&q...
</context-group>
</trans-unit>
<trans-unit id="to_org">
-<source>Destination Organisation</source>
+<source>Destination Organization</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/systems/details/SystemMigrate</context>
</context-group>
@@ -6184,13 +6184,11 @@ user before attempting to deactivate their
account.</source>
</trans-unit>
<trans-unit id="nocripterror">
- <source>Please enable Javascript or use a Javascript enabled browsr before
proceeding with this action.</source>
+ <source>Please enable Javascript or use a Javascript enabled browser before
proceeding with this action.</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/monitoring/config/PreservationList.do</context>
</context-group>
</trans-unit>
-
-
<trans-unit id="root_confirm_passwds.mismatch">
<source>The two passwords are not the same.</source>
@@ -7872,21 +7870,21 @@ Follow this url to see the full list of inactive systems:
</trans-unit>
<trans-unit id="system.migrate.org_not_trusted">
-<source>Systems can only be migrated between trusted organisations.</source>
+<source>Systems can only be migrated between trusted organizations.</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/systems/details/SystemMigrate.do</context>
</context-group>
</trans-unit>
<trans-unit id="system.migrate.no_trusted_orgs">
-<source>This organisation has no trusts defined with other organisations, or no
other organisations are defined.</source>
+<source>This organization has no trusts defined with other organizations, or no
other organizations are defined.</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/systems/details/SystemMigrate.do</context>
</context-group>
</trans-unit>
<trans-unit id="system.migrate.no_org_specified">
-<source>An organisation must be specified</source>
+<source>An organization must be specified</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/systems/details/SystemMigrate.do</context>
</context-group>
@@ -7925,7 +7923,7 @@ Follow this url to see the full list of inactive systems:
</trans-unit>
<trans-unit id="system.runningkernel.unknown">
- <source>Unkown</source>
+ <source>Unknown</source>
</trans-unit>
<trans-unit id="api.invalidargs">
@@ -8292,7 +8290,7 @@ Follow this url to see the full list of inactive systems:
</trans-unit>
<trans-unit id="frontend.actions.channels.manager.add.success">
- <source>Succesfully added {1} package(s) and scheduled {0} errata to be
cloned to channel {2}. The cloned Errata should appear in the channel and applicable to
systems within a few minutes.</source>
+ <source>Successfully added {1} package(s) and scheduled {0} errata to be
cloned to channel {2}. The cloned Errata should appear in the channel and applicable to
systems within a few minutes.</source>
</trans-unit>
<trans-unit id="frontend.actions.channels.manager.add.clone">
@@ -8703,7 +8701,7 @@ Follow this url to see the full list of inactive systems:
<trans-unit id="kickstart.cobbler.distro.syncfail">
<source>
The following is a list of errors gathered while Spacewalk attempts to
-syncronize kickstart distributions from Spacewalk to Cobbler. These
+synchronize kickstart distributions from Spacewalk to Cobbler. These
errors must be corrected for the distributions to be available for
kickstarting systems:
diff --git a/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml
b/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml
index 48bbd6c..644ba75 100644
--- a/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml
+++ b/java/code/src/com/redhat/rhn/frontend/strings/jsp/StringResource_en_US.xml
@@ -563,7 +563,7 @@
</trans-unit>
<trans-unit id="badparam.jsp.summary">
-<source>We could not display the requested page because of a missing parameter.
This error could have occured several ways:</source>
+<source>We could not display the requested page because of a missing parameter.
This error could have occurred several ways:</source>
<context-group name="ctx">
<context context-type="sourcefile">Bad Parameter error
page</context>
</context-group>
@@ -1182,7 +1182,7 @@
</trans-unit>
<trans-unit id="preferences.entitlements-widget.description">
- <source> Lists out the numbers of available entitlments per entitlement
type.</source>
+ <source> Lists out the numbers of available entitlements per entitlement
type.</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/users/UserPreferences</context>
</context-group>
@@ -8094,7 +8094,7 @@ organization management tools if you choose to remove this role from
your login.
</trans-unit>
<trans-unit id="schedulesync.jsp.profilesync">
-<source>Profile Syncrhonization</source>
+<source>Profile Synchronization</source>
<context-group name="ctx">
<context
context-type="sourcefile">NOTFILLEDOUT</context>
</context-group>
@@ -9443,7 +9443,7 @@ Please note that some manual configuration of these scripts may
still be require
<source>Setup your @@PRODUCT_NAME@@ Cobbler settings below.</source>
</trans-unit>
<trans-unit id="cobbler.jsp.summary2">
- <source>Cobbler sync is used to repair or rebuild the contents /tftpboot or
/var/www/cobbler when manual modification of cobbler has occured.</source>
+ <source>Cobbler sync is used to repair or rebuild the contents /tftpboot or
/var/www/cobbler when manual modification of cobbler has occurred.</source>
</trans-unit>
<trans-unit id="cobbler.jsp.summary3">
<source>For more information refer to the 'cobbler' man
page.</source>
@@ -9473,7 +9473,7 @@ Please note that some manual configuration of these scripts may
still be require
<source>Sync Now</source>
</trans-unit>
<trans-unit id="repos.jsp.message.taskoconfig">
- <source>Taskomatic configuration seems to be malformed. Fix it and
scheudule task again.</source>
+ <source>Taskomatic configuration seems to be malformed. Fix it and
schedule task again.</source>
</trans-unit>
<trans-unit id="repos.jsp.message.taskoaccess">
<source>Taskomatic not accessible. Restart it and set up repo sync
again.</source>
@@ -9788,7 +9788,7 @@ Please note that some manual configuration of these scripts may
still be require
</trans-unit>
<trans-unit id="kickstartdetails.jsp.virt_disk_path.tip">
- <source><strong>Tip:</strong> You may specify a
file path (/var/lib/xen/images/disk), a Volume Group (VolGroup00), or a partiion
(/dev/sda5). You can also specify multiple virtual disks by comma separating the
filepaths, volume group, or partition (/dev/sdb1,/devsdc1).</source>
+ <source><strong>Tip:</strong> You may specify a
file path (/var/lib/xen/images/disk), a Volume Group (VolGroup00), or a partition
(/dev/sda5). You can also specify multiple virtual disks by comma separating the
filepaths, volume group, or partition (/dev/sdb1,/devsdc1).</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/kickstart</context>
</context-group>
@@ -9836,14 +9836,14 @@ Please note that some manual configuration of these scripts may
still be require
</context-group>
</trans-unit>
<trans-unit id="kickstart.jsp.error.invalidvariable">
- <source>You have specified an invalid variable: '{0}'. Variables
should be name value pairs, seperated by a '=' symbol, with each pair being
seperated by a new line. For example: 'ip=192.168.0.1'</source>
+ <source>You have specified an invalid variable: '{0}'. Variables
should be name value pairs, separated by a '=' symbol, with each pair being
separated by a new line. For example: 'ip=192.168.0.1'</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/kickstart</context>
</context-group>
</trans-unit>
<trans-unit id="kickstart.jsp.error.invalidoption">
- <source>You have specified an invalid option '{0}'. Options should
be name value pairs, seperated by a '=' symbol, with each pair being seperated by
a space. For example: 'ip=192.168.0.1 netmask=255.255.255.0'</source>
+ <source>You have specified an invalid option '{0}'. Options should
be name value pairs, separated by a '=' symbol, with each pair being separated by
a space. For example: 'ip=192.168.0.1 netmask=255.255.255.0'</source>
<context-group name="ctx">
<context context-type="sourcefile">Kickstart
Details</context>
</context-group>
@@ -11136,7 +11136,7 @@ Please note that some manual configuration of these scripts may
still be require
</context-group>
</trans-unit>
<trans-unit id="softwareedit.jsp.tip">
- <source><strong>Tip:</strong> Changing the base
channel will require you to reselect any child cannels that may be associated with this
profile.</source>
+ <source><strong>Tip:</strong> Changing the base
channel will require you to reselect any child channels that may be associated with this
profile.</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/kickstart/KickstartSoftwareEdit</context>
</context-group>
@@ -13933,7 +13933,7 @@ but are not subscribed to
_@@PRODUCT_NAME@(a)Config_.</context>
<source>The files shown below will be deployed to the systems shown below.
Choose a scheduled date, or "earliest possible", from the date-chooser below.
Click the confirm button to schedule the deployment,
-or press your browser's back button to make modifications to your file and system
slections.
+or press your browser's back button to make modifications to your file and system
selections.
Note that if a given system overrides a given file, or has it in that system's local
configuration channel, the file will NOT be deployed.</source>
<context-group name="ctx">
@@ -14098,7 +14098,7 @@ Note that if a given system overrides a given file, or has it in
that system's l
</trans-unit>
<trans-unit id="deploysystems.jsp.warning">
-<source><strong>Warning:</strong> Please note that if
any of the files you are attempting to deploy from the {0} configuration channel are
overridden or outranked by a file with the same name on a higher-ranked channel any
particular system is subscribed to, then the overridding / highest-ranking version of the
file will be deployed to that system, rather than the version from the {0} configuration
channel.</source>
+<source><strong>Warning:</strong> Please note that if
any of the files you are attempting to deploy from the {0} configuration channel are
overridden or outranked by a file with the same name on a higher-ranked channel any
particular system is subscribed to, then the overriding / highest-ranking version of the
file will be deployed to that system, rather than the version from the {0} configuration
channel.</source>
<context-group name="ctx">
<context context-type="sourcefile">/rhn/</context>
<context context-type="paramnotes"></context>
@@ -14781,7 +14781,7 @@ You can't edit this file because it is a binary file.
</trans-unit>
<trans-unit id="filedetails.contents.jspf.binary-display">
<source>
-This is a binary file, and canot be displayed.
+This is a binary file, and can not be displayed.
</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/configuration/file/FileDetails.do</context>
@@ -20077,7 +20077,7 @@ Alternatively, you will want to download
<strong>Incremental Channel Conte
</trans-unit>
<trans-unit id="physicalhosts.jsp.para2">
-<source>You may always delete the @@PRODUCT_NAME@@ system profie of a guest listed
above to free the software and system entitlements it consumes (or you may remove system
entitlements from the guest to free system entitlements). You may be able to free the
physical entitlements associated with the guest without deleting the guest's
profile:</source>
+<source>You may always delete the @@PRODUCT_NAME@@ system profile of a guest listed
above to free the software and system entitlements it consumes (or you may remove system
entitlements from the guest to free system entitlements). You may be able to free the
physical entitlements associated with the guest without deleting the guest's
profile:</source>
<context-group name="ctx">
<context
context-type="sourcefile">/rhn/systems/entitlements/PhysicalHosts.do</context>
</context-group>
@@ -21682,7 +21682,7 @@ given channel.</source>
<source>Create Custom Info Key</source>
</trans-unit>
<trans-unit id="system.jsp.customkey.createmsg">
- <source>Define infomation about this key below.</source>
+ <source>Define information about this key below.</source>
</trans-unit>
<trans-unit id="system.jsp.customkey.createbutton">
<source>Create Key</source>
@@ -21738,7 +21738,7 @@ given channel.</source>
</trans-unit>
<trans-unit id="baddownload.jsp.retry">
- <source>Please revisit the page you recieved this url from to recieve a new
one.</source>
+ <source>Please revisit the page you received this url from to receive a new
one.</source>
</trans-unit>
<trans-unit id="package.jsp.alt">
@@ -22404,10 +22404,10 @@ given channel.</source>
</trans-unit>
<trans-unit id="channel.jsp.errata.sync.message">
<source>The following errata were cloned from errata that have since been
updated.
- This page will allow you to syncronize your cloned errata to that of its
original.</source>
+ This page will allow you to synchronize your cloned errata to that of its
original.</source>
</trans-unit>
<trans-unit id="channel.jsp.errata.sync.note">
- <source>Packages that were omitted as part of the origianl cloning process will
be included here.</source>
+ <source>Packages that were omitted as part of the original cloning process will
be included here.</source>
</trans-unit>
<trans-unit id="channel.jsp.errata.sync.listempty">
<source>No out of date errata were found.</source>
@@ -22419,7 +22419,7 @@ given channel.</source>
<source>The following packages will be pushed to this channel as part of the
errata sync process. Please review this list and unselect any unwanted
packages.</source>
</trans-unit>
<trans-unit id="channel.jsp.errata.sync.complete">
- <source>Sucessfully syncronized {0} errata and pushed {1} packages to channel
{2}.</source>
+ <source>Successfully synchronized {0} errata and pushed {1} packages to channel
{2}.</source>
</trans-unit>
<trans-unit id="channel.jsp.repodata">
<source>Repo Cache Status</source>
diff --git a/scripts/spelling/check.sh b/scripts/spelling/check.sh
new file mode 100644
index 0000000..fb504f2
--- /dev/null
+++ b/scripts/spelling/check.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+dirs=(
+java/code/src/com/redhat/rhn/frontend/strings/database
+java/code/src/com/redhat/rhn/frontend/strings/java
+java/code/src/com/redhat/rhn/frontend/strings/jsp
+java/code/src/com/redhat/rhn/frontend/strings/nav
+java/code/src/com/redhat/rhn/frontend/strings/template
+)
+
+for lang in "${langs[@]}"
+do
+ for dir in "${dirs[@]}"
+ do
+ if [ "$lang" = "en_US" ]; then
+ xslt=onlySource.xslt
+ else
+ xslt=onlyTarget.xslt
+ fi
+ dirbase=$(basename "$dir")
+ echo "Spell check result for $lang in $dirbase"
+ xsltproc $xslt ../../$dir/StringResource_$lang.xml | \
+ aspell list -l $lang -p $(pwd)/ignored_$lang.txt --ignore=3 --encoding=utf-8 | \
+ sort -u
+ done
+done
diff --git a/scripts/spelling/check_all.sh b/scripts/spelling/check_all.sh
new file mode 100755
index 0000000..7b099d7
--- /dev/null
+++ b/scripts/spelling/check_all.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+langs=(
+en_US
+bn_IN
+de
+en_US
+es
+fr
+gu
+hi
+it
+ja
+ko
+pa
+pt_BR
+ru
+ta
+zh_CN
+zh_TW
+)
+
+. ./check.sh
diff --git a/scripts/spelling/check_en_US.sh b/scripts/spelling/check_en_US.sh
new file mode 100755
index 0000000..49b60d7
--- /dev/null
+++ b/scripts/spelling/check_en_US.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+langs=(
+en_US
+)
+
+. ./check.sh
diff --git a/scripts/spelling/ignored_en_US.txt b/scripts/spelling/ignored_en_US.txt
new file mode 100644
index 0000000..f533952
--- /dev/null
+++ b/scripts/spelling/ignored_en_US.txt
@@ -0,0 +1,265 @@
+personal_ws-1.1 en 0 utf-8
+ActionDetails
+AclHandler
+aclXXXX
+Bouvet
+Burkina
+Caicos
+catalina
+checkbox
+Checkin
+cleanindex
+config
+Config
+CPUs
+Debian
+Faroe
+Faso
+filename
+Futuna
+guestname
+Hong
+hostname
+Hostname
+http
+httpd
+https
+IllegalAccessException
+IllegalInvocationException
+initrd
+iSeries
+Javascript
+kickstart
+Kickstart
+kickstarted
+kickstarting
+kickstarts
+kickstart's
+Kitts
+Lanka
+Leste
+login
+Login
+Logins
+LoginSubmit
+Lookup
+Macau
+Marino
+Mayen
+Mayotte
+mips
+Miquelon
+mtime
+Niue
+NVRE
+Palau
+Papua
+PowerPC
+pSeries
+Puerto
+redhat
+RHEL
+rhnsd
+sbin
+SearchServer
+SELinux
+solaris
+Solaris
+Sparc
+symlink
+symlinks
+taskomatic
+TASKOMATIC
+Timor
+Tokelau
+TRACEBACK
+Unentitle
+Unentitled
+Ungrouped
+Unhandled
+unsubscribe
+unsubscribed
+username
+Username
+vCPUs
+virsh
+virtualization
+Virtualization
+XMLRPC
+yyyy
+Zealand
+CompletedSystems
+FailedSystems
+GeneralConfig
+YourRhn
+Côte
+d'Ivoire
+Acknowledgement
+conf
+conns
+ExtendedStatus
+Filesystem
+FQDN
+ICMP
+IMAP
+Inodes
+iostat
+JDBC
+LongLegs
+Metres
+MySQL
+Pathname
+RCVD
+rdbms
+RHNMD
+RPMs
+Servlet
+SMTP
+SNMP
+Tablespace
+Uptime
+UserAgent
+Weblogic
+webserver
+ActivationKeysList
+adminstrators
+AllErrata
+apache
+auth
+Backend
+Backout
+bootloader
+Bootloader
+Bugfix
+Bugfixes
+cancelled
+checkboxes
+checkin
+Checksum
+chroot
+Comfirm
+commandline
+CommitErrataPackageChanges
+CompletedActions
+conf
+Configs
+Cpus
+CreateCorporate
+CreateProfileWizard
+critera
+Cron
+crypto
+cryptokey
+CryptoKeysList
+CVEs
+debuginfo
+DebugInfo
+deployable
+Deployable
+devsdc
+DHCP
+distro
+downloadable
+ELILO
+enablement
+Enablement
+esystem
+executables
+FailedActions
+FasTrack
+filepath
+filepaths
+filesystem
+GnuPG
+GPLv
+Greyed
+href
+html
+InProgressSystems
+ISOs
+kerberos
+Kerberos
+kickstartable
+Kickstartable
+KickstartPackagesEdit
+KickstartPartitionEdit
+KickstartSoftwareEdit
+Knowledgebase
+ksid
+LDAP
+listicon
+logout
+lookup
+myfilename
+nbsp
+Netboot
+newlogin
+nochroot
+nvrea
+patchset
+patchsets
+Patchsets
+plaintext
+Pluggable
+prepended
+PreservationList
+privledges
+privleges
+ProbeEdit
+ProbeList
+PurchaseHistory
+pxeboot
+Readme
+repo
+Repo
+repos
+Resubscription
+RHBA
+rhel
+rhncfg
+rpms
+RPMs
+searchable
+SElinux
+showgroups
+SNMP
+subscribable
+Subscribable
+SubscriptionManagement
+subtab
+SunOs
+SupportedISOs
+SystemChannels
+SystemEntitlements
+SystemList
+templating
+tftpboot
+Timestamp
+unchecking
+unentitled
+ungrouped
+uninstall
+unix
+Unschedule
+unselect
+Unselect
+unselectall
+updatelist
+uptime
+UserPreferences
+UUID
+VirtualGuestsList
+Virtualized
+vmlinuz
+VolGroup
+webcasts
+wget
+whitepapers
+wildcards
+xenbr
+Zipcode
+logins
+Entitler
+Isls
+prid
+selectall
diff --git a/scripts/spelling/onlySource.xslt b/scripts/spelling/onlySource.xslt
new file mode 100644
index 0000000..f1a9665
--- /dev/null
+++ b/scripts/spelling/onlySource.xslt
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="1.0"
+ xmlns:x="urn:oasis:names:tc:xliff:document:1.1"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="text"/>
+
+ <xsl:template match="@*|node()">
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:template>
+
+ <xsl:template match="x:source">
+ <xsl:value-of select="text()"/>
+ <xsl:text> </xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/scripts/spelling/onlyTarget.xslt b/scripts/spelling/onlyTarget.xslt
new file mode 100644
index 0000000..2110eb0
--- /dev/null
+++ b/scripts/spelling/onlyTarget.xslt
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="1.0"
+ xmlns:x="urn:oasis:names:tc:xliff:document:1.1"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="text"/>
+
+ <xsl:template match="@*|node()">
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:template>
+
+ <xsl:template match="x:target">
+ <xsl:value-of select="text()"/>
+ <xsl:text> </xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>