aboutsummaryrefslogtreecommitdiffstats
path: root/crowdin/local-patches
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-02-06 10:30:25 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-02-06 10:31:31 +0100
commit117105caa4dfb03e0be8d50d23613545c21cf939 (patch)
tree1124145db1a05c33f1c95eeb26576d2bbc94e45b /crowdin/local-patches
parentd40e763da0afc6b3e816fce57f9eacf646625874 (diff)
downloadcgeo-117105caa4dfb03e0be8d50d23613545c21cf939.zip
cgeo-117105caa4dfb03e0be8d50d23613545c21cf939.tar.gz
cgeo-117105caa4dfb03e0be8d50d23613545c21cf939.tar.bz2
fix #3600: false positive lint warnings
There is now a "local-patches" file in place where necessary adjustments can be done.
Diffstat (limited to 'crowdin/local-patches')
-rwxr-xr-xcrowdin/local-patches14
1 files changed, 14 insertions, 0 deletions
diff --git a/crowdin/local-patches b/crowdin/local-patches
new file mode 100755
index 0000000..d671c81
--- /dev/null
+++ b/crowdin/local-patches
@@ -0,0 +1,14 @@
+#
+# This file contains special handlings that must be done on
+# crowdin strings. For example, some sentences must get a
+# ignore-typo flag so that lint does not give a false
+# positive.
+#
+# All the fixes should be idempotent so that this script can be applied
+# to the fixed version as well.
+
+# Fix a lint confusion between Portuguese word "com" and "geocaching.com"
+# name, which can be flagged as a repetition of the same word.
+
+sed -i -e '/geocaching\.com com/s/\(<string name="[^"]*"\)>/\1 tools:ignore="Typos">/' \
+ main/res/values-pt/strings.xml