From 33b8a59561c43b16af55460f3e300effb59869d0 Mon Sep 17 00:00:00 2001
From: Jan Holesovsky <kendy@suse.cz>
Date: Tue, 4 Jan 2011 17:44:06 +0100
Subject: wikihelp: Convert also $PRODUCTNAME into {{ProductName}}.

---
 helpcontent2/to-wiki/getalltitles.py | 4 +++-
 helpcontent2/to-wiki/wikiconv2.py    | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

(limited to 'helpcontent2')

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():
-- 
cgit