summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-01-04 17:44:06 +0100
committerJan Holesovsky <kendy@suse.cz>2011-01-04 17:44:06 +0100
commit33b8a59561c43b16af55460f3e300effb59869d0 (patch)
tree216f8e1fc051715a9fc6f7639160220514d501d8
parent235058fe486fe22a1d2158219e5020da37756040 (diff)
wikihelp: Convert also $PRODUCTNAME into {{ProductName}}.
-rwxr-xr-xhelpcontent2/to-wiki/getalltitles.py4
-rwxr-xr-xhelpcontent2/to-wiki/wikiconv2.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/helpcontent2/to-wiki/getalltitles.py b/helpcontent2/to-wiki/getalltitles.py
index b9fb989416..f1167830f6 100755
--- a/helpcontent2/to-wiki/getalltitles.py
+++ b/helpcontent2/to-wiki/getalltitles.py
@@ -26,6 +26,7 @@ def make_unique(title):
replace_text_list = [
["$[officename]",""], # to fit both LibreOffice and BrOffice
["%PRODUCTNAME",""], # to fit both LibreOffice and BrOffice
+ ["$PRODUCTNAME",""], # to fit both LibreOffice and BrOffice
['"+"',"Plus"],
['"*"',"Star"],
['"-"',"Minus"],
@@ -43,7 +44,8 @@ replace_text_list = [
replace_readable_list = [
["$[officename]","{{ProductName}}"],
- ["%PRODUCTNAME","{{ProductName}}"]
+ ["%PRODUCTNAME","{{ProductName}}"],
+ ["$PRODUCTNAME","{{ProductName}}"]
]
modules_list = [
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py
index f74687b446..87d0d45770 100755
--- a/helpcontent2/to-wiki/wikiconv2.py
+++ b/helpcontent2/to-wiki/wikiconv2.py
@@ -114,7 +114,8 @@ section_id_mapping = \
# text snippets that we need to convert
replace_text_list = \
[["$[officename]", "{{ProductName}}"],
- ["%PRODUCTNAME", "{{ProductName}}"]
+ ["%PRODUCTNAME", "{{ProductName}}"],
+ ["$PRODUCTNAME", "{{ProductName}}"]
]
def load_hid_lst():