Talk:Strings: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Created page with "==Teh magic== <code>sed -n '/msgctxt/{N;p}' strings.po | sed -e 's/msgctxt//' -e 's/msgid//' -e 's/[#"]//g' | paste - - | while read ID TEXT; do echo "<section begin=\"string...")
 
 
Line 1: Line 1:
==Teh magic==
==Teh magic==
<code>sed -n '/msgctxt/{N;p}' strings.po | sed -e 's/msgctxt//' -e 's/msgid//' -e 's/[#"]//g' | paste - -  | while read ID TEXT; do echo "<section begin=\"string-$ID\"  />"$TEXT"<section end=\"string-$ID\" />"; done</code>
<code><nowiki>sed -n '/msgctxt/{N;p}' strings.po | sed -e 's/msgctxt//' -e 's/msgid//' -e 's/[#"]//g' | paste - -  | while read ID TEXT; do echo "<section begin=\"string-$ID\"  />"$TEXT"<section end=\"string-$ID\" />"; done</nowiki></code>


Putting this here so I don't forget. -- [[User:Ned Scott|Ned Scott]] ([[User talk:Ned Scott|talk]]) 03:27, 26 May 2015 (EDT)
Putting this here so I don't forget. -- [[User:Ned Scott|Ned Scott]] ([[User talk:Ned Scott|talk]]) 03:27, 26 May 2015 (EDT)

Latest revision as of 07:48, 26 May 2015

Teh magic

sed -n '/msgctxt/{N;p}' strings.po | sed -e 's/msgctxt//' -e 's/msgid//' -e 's/[#"]//g' | paste - - | while read ID TEXT; do echo "<section begin=\"string-$ID\" />"$TEXT"<section end=\"string-$ID\" />"; done

Putting this here so I don't forget. -- Ned Scott (talk) 03:27, 26 May 2015 (EDT)