Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Remmina
Remmina
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 251
    • Issues 251
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 2
    • Merge Requests 2
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Remmina
  • RemminaRemmina
  • Wiki
    • Localisation
  • Update gettext messages

Last edited by Allan Nordhøy May 29, 2020
Page history

Update gettext messages

This is a quick, dirty and no brainy procedure to update the PO files in Remmina.

Please wait 10 seconds before copying and pasting it in the terminal.

REMMINATOP=~/remmina_devel/Remmina 
cd $REMMINATOP 
find src plugins -name "*.c" | sed 's/^.\///' >| po/POTFILES.in 
find data -name "*.glade" | sed 's/^.\///' >> po/POTFILES.in 
find data -name "*.appdata.xml" | sed 's/^.\///' >> po/POTFILES.in
xgettext --from-code=UTF-8 -k_ -kN_ -ktranslatable --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --add-comments --files-from=po/POTFILES.in --output=po/messages.pot --copyright-holder="2014–2020 Weblate translators" --package-name="Remmina" --package-version="1.2.31" --msgid-bugs-address="admin@remmina.org"
cd $REMMINATOP/po 
for i in *.po; do  
msgmerge -N --backup=off --update $i messages.pot 
done 
for i in $REMMINATOP/po/*.po ; do  
TMPF=/tmp/f$$.txt 
sed '/^#~/d' $i > $TMPF 
awk 'BEGIN{bl=0}/^$/{bl++;if(bl==1)print;else next}/^..*$/{bl=0;print}' $TMPF >| $i 
rm $TMPF 
done 
rm *.po~ 
rm messages.pot 

To test Remmina in another language, you can start it from the commandline this way:

LANGUAGE=ru remmina
Clone repository

Table of contents

  • Home
  • Usage
    • Remmina SSH terminal colour schemes
    • Remmina usage FAQ
    • Remmina user’s guide
    • Remmina command line examples
    • Remmina SSH wizardry
  • Compilation
    • Compilation guide for Red Hat/CentOS
    • Compile on Arch Linux
    • Compile on Debian 10 Buster
    • Compile on Debian 9 Stretch
    • Compile on Fedora 20 ~ 26
    • Compile on FreeBSD
    • Compile on Ubuntu 14.04
    • Compile on Ubuntu 16.04
    • Compile on Ubuntu 18.04
    • Compile on Ubuntu 20.04
  • Development
    • Development Notes
    • multi-monitor support
  • Contribution
    • Contribute to the Remmina documentation
    • HOWTO generate the changelog
  • Localisation
    • How to translate Remmina
    • Update gettext messages
  • Testing
    • Testing under Ubuntu with the remmina next daily PPA
  • Problems and tweaks
    • Black screen
    • GTK versions on various distributions
    • Problems with Wayland
    • Remmina RDP and HiDPI scaling
    • Remmina VNC to Raspbian Stretch
    • Squares insead of text
    • Systray menu
    • VNC key mapping configuration
    • View and export passwords