Unfortunately, the best way is to manually define each shortcut, dialog by dialog.
Now, since this is very cumbersome, a tool to map each dialog with pootle file/section is a must.
Regards Olivier Em 15-10-2011 20:49, Hossein Noorikhah escreveu:
Hi, A simple question: When there is no manual accelerator set, do accelerators always remain the same? What if some menu items are removed in a future version? Those who use accelerators know what I mean. Every new version you should learn it again?! On 10/15/11, Milos Sramek<sramek.milos@gmail.com> wrote:Dňa 15.10.2011 14:24, Sérgio Marques wrote / napísal(a):011/10/14 Milos Sramek<sramek.milos@gmail.com>Dňa 13.10.2011 17:49, Sérgio Marques wrote / napísal(a):Is there any chance of someone with skills make a bash script to remove accelerators from translation (msgstr) files?Hi, this seems to be easy: In the topmost directory issue the following command: sed -i.xx '/^msgstr/ s/\~//g' `find . -name \*po` Explanation: find . -name \*po finds all po files `find . -name \*po` enters list of these files to the command sed -i does inplace modification, backing up the original file to name.po.xx the command s/\~//g replaces all ~character by nothing /^msgstr/ allows to do that only on lines, which start by msgstr (you probably do no want to change the English lines and the lines which specify ~ as the accelerator.) Once done, you can check the differences by: for i in `find . -name \*.po`; do diff $i.xx $i>$i.diff; done for each po file, a file with differences is created with the following records: 73c73 .... line number < msgstr "Otvo~riť len na čítanie" .... input ---msgstr "Otvoriť len na čítanie" ..... outputIf you want to see the ~ characters, use the following before and after deletion grep \~ `find . -name \*.po` While it is easy to get all po files from pootle, I do not know, if it is possible to upload many files at once. Perhaps, git access is useful to do this. Be careful, always make backups and check the result Enjoy MilosHi again Milos, The commando work like a charm. Will wait till Andras reply to see my next move. But now, how can I remove in one step the files generated? (diff and po.xx)Hi rm `find . -name \*.xx` the command "find . -name \*.xx" finds all *.xx files and the backquotes `` just take the output of the find command and insert it as a list of arguments to the rm command. Milosregards Sérgio Marques-- email& jabber: sramek.milos@gmail.com -- Unsubscribe instructions: E-mail to l10n+help@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/l10n/ All messages sent to this list will be publicly archived and cannot be deleted
-- Olivier Hallot Founder, Steering Commitee Member - The Document Foundation LibreOffice translation leader for Brazilian Portuguese +55-21-8822-8812 -- Unsubscribe instructions: E-mail to l10n+help@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/l10n/ All messages sent to this list will be publicly archived and cannot be deleted