Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 23:30
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Programs and scripts that are not yet internationalized
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [55 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
vicmz


Joined: 15 Jan 2012
Posts: 1105

PostPosted: Wed 15 May 2013, 12:46    Post subject:  

Pwsget

/usr/sbin/pwsget
Code:
#! /bin/bash

# Pwget created by Lobster with thanks to Zigbert and Pwsget additions by gposil
# for Puppy Dingo and Linux Tmxxine
# Jan 2008 GPL v3 License
# http://tmxxine.com
# 20130515 internationalized (vicmz)

export TEXTDOMAIN=pwsget
export OUTPUT_CHARSET=UTF-8

LOGIN=""

export Pwget='
<window title="'$(gettext 'Pwget - File downloader utility')'" resizable="false">
<vbox>
 <frame>
  <text><label>'$(gettext 'Copy and Paste URL location of required file into "Address". Add destination and click "OK". If the site requires it, you can enter "Login" and "Password"')'.</label></text>
 </frame>
 <hbox>
 <text><label>'$(gettext 'Login:       ')'</label></text>
 <entry><variable>LOGIN</variable></entry></hbox>
 <hbox>
 <text><label>'$(gettext 'Password:')'</label></text>
 <entry><variable>PWORD</variable></entry></hbox>
 <hbox>
  <text><label>'$(gettext 'Address:  ')'</label></text>
  <entry accept="directory"><variable>SOURCE</variable><input>/tmp/pm_source_dir</input></entry>
 </hbox>
 <hbox>
  <text><label>'$(gettext 'Dest Dir:  ')'</label></text>
  <entry accept="directory"><variable>DEST</variable><input>/tmp/pm_mirror_dir</input></entry>
  <button>
   <input file icon="gtk-open"></input>
   <action type="fileselect">DEST</action>
   <action>refresh:DEST</action>
  </button>
 </hbox>
 <hbox>
  <button help>
   <action>`Xdialog --wrap --screencenter --left --title "'$(gettext 'Pwget - HELP')'" --msgbox "'$(gettext 'Pwget is a simple front end to the wget utility. Wget is used for downloading larger files from the internet such as ISOs. The files are verified during the download procedure. As ISO and other files are checked and downloads resumed, they do not require a md5sum check. Copy and paste the source file you wish to download. Use the file selector to choose the destination. \n\n Lobster, Jan 2008')'" 600x0`</action>
  </button>
  <button cancel></button>
  <text><label>'$(gettext 'Download')'</label></text>
  <button ok></button>
 </hbox>
</vbox>
</window>'

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog3 --program=Pwget --center ); do
   eval $STATEMENTS
done
IFS=$I
if [ $EXIT = OK ]; then
  if [ -z $LOGIN ]; then
  rxvt -name Xwget -bg black -fg yellow -e wget -c -P "$DEST" $SOURCE
  rox -d "$DEST"
  fi
  if [ -n $LOGIN ]; then
  rxvt -name Xwget -bg black -fg yellow -e wget -c --http-user=$LOGIN --http-password=$PWORD --ftp-user=$LOGIN --ftp-password=$PWORD -P "$DEST" $SOURCE
  rox -d "$DEST"
  fi
fi
image-4.png
 Description   pwsget - es
 Filesize   22.72 KB
 Viewed   360 Time(s)

image-4.png


_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español

Last edited by vicmz on Wed 15 May 2013, 15:56; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 15 May 2013, 13:05    Post subject: Programs and scripts that are not yet internationalized
Subject description: pplog_gui
 

found this one:
/usr/sbin/pplog_gui wrote:
#! /bin/sh
#(c) Barry Kauler July 2008, licence: GPL2
# i18n Apr 2013

. gettext.sh
export TEXTDOMAIN=pplog_gui
export OUTPUT_CHARSET=UTF-8
TITLE="$(gettext 'PPLOG personal blog')"
BUTTON_START="$(gettext 'START')"
BUTTON_STOP="$(gettext 'STOP')"
BUTTON_EXIT="$(gettext 'EXIT')"
BUTTON_PPLOG="$(gettext 'PPLOG')"

PSSTATUS="`ps`"
if [ "`echo "$PSSTATUS" | grep ' hiawatha'`" = "" ];then
xmessage -center -bg '#ffc0c0' -buttons START:10,EXIT:11 -title "${TITLE}" "$(eval_gettext '${TITLE} requires the Hiawatha web server to be running.')
$(eval_gettext 'Click the ${BUTTON_START} button to do this, otherwise click ${BUTTON_EXIT} to abort.')"
[ $? -ne 10 ] && exit

echo '' > /tmp/hiawatha_error
hiawatha 2>/tmp/hiawatha_error

if [ $? -ne 0 ];then
ERRMSG="`cat /tmp/hiawatha_error`"
xmessage -center -bg 'red' -buttons EXIT:10 -title "${TITLE}" "$(gettext 'There was an error when attempting to start Hiawatha, this error message:')

${ERRMSG}

$(eval_gettext 'Click ${BUTTON_EXIT} button to quit:')"
exit
fi
fi

xmessage -center -bg 'orange' -buttons ${BUTTON_PPLOG}:10,${BUTTON_STOP}:11,${BUTTON_EXIT}:12 -title "${TITLE}" "
$(eval_gettext 'Click the ${BUTTON_PPLOG} button to run the ${TITLE}.

The Hiawatha web server is currently running, which is required for PPLOG.
If you want to stop the server and exit, click the ${BUTTON_STOP} button.

To just quit, click the ${BUTTON_EXIT} button:')"

case $? in
10)
exec defaulthtmlviewer http://127.0.0.1:80/blog/pup_pplog.pl
;;
11)
hiawatha.run stop
exit
;;
*)
exit
;;
esac

###END###


Very Happy
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 363
Location: Warsaw

PostPosted: Wed 15 May 2013, 15:04    Post subject:  

I updated the list in the first post

/usr/sbin/Floppy_Formatter
Code:
#! /bin/bash
#USB Floppy Formatter GUI by 8-bit Sept. 12, 2009
#Modified Oct. 19,2009  Very little error checking done. Can it be implemented without external programs?
#Written with the idea someone might get some use out of it.
#Consider this program to be open source to modify as you wish.
#130515 robwoj44 internationalized

. gettext.sh
export TEXTDOMAIN=Floppy_Formatter
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8

llfloppy()
{
#gxmessage -center -name     Floppy_Formatter "Insert writable unmounted floppy in drive."


ERR0=1
while [ ! $ERR0 -eq 0 ];do
  xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...Low-level formatting disk ')" &
 if [ $CBOX3 = "true" ];then
  ufiformat -f $COMBO1 $WORD1
 else
  if [ $CBOX4 = "true" ];then
   fdformat /dev/fd0u$COMBO1
 else
  if [ $CBOX5 = "true" ];then
    fdformat /dev/fd1 $COMBO1

   gxmessage -center -name     Floppy_Formatter "$(gettext 'No internal floppy drive found.')"
   return
  fi
 fi
 fi
 ERR0=$?
 killall xmessage
 if [ ! $ERR0 -eq 0 ];then
  xmessage -bg "#ffe0e0" -name "$gettext 'loformat')" -title "$(gettext  '  Lo-level Formatter')" -center \
  -buttons "$(gettext 'Try again')":20,"$(gettext 'MENU')":10 -file -<<XMSG
$(gettext 'ERROR low-level formatting disk.
Is the write-protect tab closed?')
XMSG

  AN0=$?
  if [ $AN0 -eq 10 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 0 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 1 ];then
   ERR0=0
  fi
 else
   gxmessage -center -name     Floppy_Formatter  "$(gettext 'Formatting of disk is finished. ')"
 fi
done
return
}
dosfloppy()
{
#gxmessage -center -name     Floppy_Formatter "Insert writable unmounted floppy in drive."
ERR0=1
while [ ! $ERR0 -eq 0 ];do
  if [ $CBOX3 = "true" ];then
    xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...making dos filesystem. And checking for errors ')" &
    $CBOX2 $WORD1 $COMBO1
  else
    if [ $CBOX4 = "true" ];then
      xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...making dos filesystem. And checking for errors ')" &
      $CBOX2 /dev/fd0 $COMBO1
  else
    if [ $CBOX5 = "true" ];then
      xmessage -center -name     Floppy_Formatter "$(gettext 'Please wait...making dos filesystem. And checking for errors')" &
  fi
  fi
 fi
 ERR0=$?
 killall xmessage
 if [ ! $ERR0 -eq 0 ];then
#gxmessage -center -name USB_Floppy_Formatter "Error is "$ERR0""
  xmessage -bg "#ffe0e0" -name "$(gettext 'loformat')" -title "$(gettext  '  Lo-level Formatter')" -center \
  -buttons "$(gettext 'Try again')":30,"$(gettext 'MENU')":10 -file -<<XMSG
$(gettext 'ERROR making DOS filesystem.
Is the write-protect tab closed?
If this is second try, Floppy
has bad sectors. Low level format
or replace floppy!')
XMSG

  AN0=$?
  if [ $AN0 -eq 10 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 0 ];then
   ERR0=0
  fi
  if [ $AN0 -eq 1 ];then
   ERR0=0
  fi
 else
   gxmessage -center -name     Floppy_Formatter  "$(gettext 'Making dos filesystem is finished. ')"
 fi
done
return
}
top_menu()
{
 export CHOOSER="
<window title=\"$(gettext  '  Floppy Formatter  ')\"icon-name=\"gtk-floppy\">
<vbox>
<frame          $(gettext  ' Choose type of floppy drive ')            >
<hbox>
     <checkbox>
      <label>$(gettext 'USB floppy Drive ')                                 </label>
      <variable>CBOX3</variable>
      <default>false</default>
    </checkbox>

</hbox>
<hbox>
    <checkbox>
      <label>$(gettext 'Internal floppy drive 0 ')                         </label>
      <variable>CBOX4</variable>
      <default>false</default>
    </checkbox>
</hbox>
<hbox>
    <checkbox>
      <label>$(gettext 'Internal floppy drive 1 ')                         </label>
      <variable>CBOX5</variable>
      <default>false</default>
    </checkbox>
</hbox>
 </frame>
 
  <frame $(gettext 'choose size of floppy:')>
    <combobox>
     <variable>COMBO1</variable>
      <item>1440</item>
      <item>720</item>
    </combobox>   
</frame>
<frame $(gettext 'choose Options:') >
<hbox>
     <checkbox>
      <label>$(gettext 'Low level format ')                               </label>
      <variable>CBOX1</variable>
      <default>false</default>
    </checkbox>

</hbox>
<hbox>
    <checkbox>
      <label>$(gettext 'MSDOS file system. ')                           </label>
      <variable>CBOX2</variable>
      <default>false</default>
    </checkbox>
</hbox>
 </frame>

<hbox>
  <button>
   <input file icon=\"gtk-ok\"></input>
        <label>$(gettext 'OK')</label>
        <action type=\"exit\">EXIT_OK</action>
   </button>
   <button>
   <input file icon=\"gtk-quit\"></input>
        <label>$(gettext 'QUIT')</label>
        <action type=\"exit\">EXIT_NOW</action>
      </button>
</hbox>
</vbox>
</window>
"

CHOOSER2==`gtkdialog3 --program=CHOOSER --center`

if [ "`echo $CHOOSER2 | grep EXIT_NOW`" != "" ]; then
 exit 0
fi

#Get all of the variables
CBOX1="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX1 | sed 's/CBOX1//'`"
CBOX2="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX2 | sed 's/CBOX2//'`"
CBOX3="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX3 | sed 's/CBOX3//'`"
CBOX4="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX4 | sed 's/CBOX4//'`"
CBOX5="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep CBOX5 | sed 's/CBOX5//'`"
COMBO1="`echo "$CHOOSER2" | sed 's/\"//g' | sed 's/=//g' | grep COMBO1 | sed 's/COMBO1//'`"
if [ $CBOX3 = "true" ];then
 #Added Test for presence of USB floppy drive
 FLOP="`ufiformat -i`"
 WORD1="`echo $FLOP | cut -f 3 -d ' '`"
 if  [ -z $WORD1 ];then
   gxmessage -center -name USB_Floppy_Formatter "$(gettext ' No USB Drive Found ')            "
   top_menu
 fi
#End of added test
fi
if [ $CBOX4 = "true" ];then
 IN="`which /root/.pup_event/drive_fd0/AppRun`"
 echo $IN
 if [ -z $IN ];then
   gxmessage -center -name Floppy_Formatter "$(gettext 'No internal floppy drive found ')   "
   top_menu
 fi
fi
if [ $CBOX5 = "true" ];then
 IN="`which /root/.pup_event/drive_fd1/AppRun`"
 echo $IN
 if [ -z $IN ];then
   gxmessage -center -name Floppy_Formatter "$(gettext 'No internal floppy drive found ')   "
   top_menu
 fi
fi



if [ $CBOX3 = "false" ] && [ $CBOX4 = "false" ] && [ $CBOX5 = "false" ];then
   gxmessage -center -name USB_Floppy_Formatter "$(gettext ' Error-No drive type selected! ') "
   top_menu
else
  if [ $CBOX1 = "false" ] && [ $CBOX2 = "false" ];then
   gxmessage -center -name USB_Floppy_Formatter "$(gettext ' Error-No Options selected! ')    "
   top_menu
else
  if [ $CBOX1 = "true" ];then
   llfloppy
    #rxvt +sb -bg green -geometry 80x4 -e $CBOX1 $COMBO1 $WORD1
  else
    CBOX1="" #setting it back to "null" allows us to pass all parameters without doing more "if thens"
  fi
fi
fi
if [ $CBOX2 = "true" ];then
    CBOX2="mkfs.msdos -v -c -I "
  dosfloppy
 #rxvt +sb -bg green -geometry 80x4 -e $CBOX2 $WORD1
else
 CBOX2="" #setting it back to "null" allows us to pass all parameters without doing more "if thens"
fi

unset CHOOSER
top_menu
}
top_menu
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 16 May 2013, 04:14    Post subject: Programs and scripts that are not yet internationalized
Subject description: grub config
 

robwoj44 wrote:
I updated the list in the first post

Thank you.

Just one note,
the configuration for grub is now
legacy grub config 2013
internationalized by the developer rcsn51 himself.
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 363
Location: Warsaw

PostPosted: Thu 16 May 2013, 07:07    Post subject:  

ssh-gui internationalized
/usr/sbin/ssh-gui
ssh-gui-0.7.1_pup1.tar.gz
Description  ssh-gui with ssh-gui.pot
gz

 Download 
Filename  ssh-gui-0.7.1_pup1.tar.gz 
Filesize  8.11 KB 
Downloaded  254 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 16 May 2013, 07:10    Post subject: Programs and scripts that are not yet internationalized
Subject description: /usr/sbin/gpptp
 

robwoj44,
though I could make a translation in momanager...
(copied gpptp to /usr/share/doc/nls/gpptp/)
but when

Edit
/usr/sbin/gpptp (gpptp gpptp)
things went crazy

directory /usr/share/locale/gpptp/ was created
and not editable.

[edit]source of gpptp (gpptp.c ? ) is also needed in GPL software [/edit]

BarryK,
thus put /usr/sbin/gpptp on hold for now.

rodin.s,
can you confirm it is working or not please.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 16 May 2013, 08:00    Post subject: Programs that are not yet internationalized
Subject description: /usr/sbin/ssh-gui
 

Sorry, same with /usr/sbin/ssh-gui Crying or Very sad

adding source could help find the bug Cool
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 363
Location: Warsaw

PostPosted: Thu 16 May 2013, 08:42    Post subject:  

Thank you for the verification. I add the sources of gpptp and ssh-gui. I made the internalization of c files for the first time. It seems to work (I connected to vpn with polish gpptp), but really I'm not sure if I made it correctly. To make the pot file I used: xgettext -d gpptp -s -o gpptp.pot --keyword=_ gpptp.c
sources.tar.gz
Description  Sources of gpptp and ssh-gui with Makefile
gz

 Download 
Filename  sources.tar.gz 
Filesize  8.59 KB 
Downloaded  266 Time(s) 

Last edited by robwoj44 on Thu 16 May 2013, 15:07; edited 2 times in total
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 363
Location: Warsaw

PostPosted: Thu 16 May 2013, 10:43    Post subject:  

Pdict internationalized

/usr/sbin/pdict
Code:
#!/bin/sh
##! /usr/sbin/gtkdialog3 -e
#BK nov 2007 gui frontend for dict.
#110126 improvements.
#130516 robwoj44 internationalized

export TEXTDOMAIN=pdict
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8
. gettext.sh


echo -n "" > /tmp/pdict-results.txt

yaf-splash -placement center -bg orange -close never -timeout 60 -fontsize large -text "$(gettext 'Please wait, accessing online Dict server...')" &
DICTLIST="`dict --dbs`"
killall yaf-splash
COMBOCONTENT="`echo "$DICTLIST" | tr "'" "_" | grep '^ ' | grep -v '^ \-' | sed -e 's/^ //' | sed -e 's/^/<item>/' | sed -e 's/$/<\/item>/'`" #'geany
COMBOCONTENT="<item>all        $(gettext 'Search all databases')</item>
${COMBOCONTENT}"

echo '#/bin/sh' > /tmp/pdict-func1
echo 'dict -d $2 $1  > /tmp/pdict-results.txt 2>&1'  >> /tmp/pdict-func1 #110126
chmod 755 /tmp/pdict-func1

export MAIN_DIALOG="
<window title=\"$(gettext 'Pdict dictionary and thesaurus')\" icon-name=\"gtk-info\">
 <vbox>
  <hbox>
   <text><label>$(gettext 'enter a word:')</label></text>
   <entry activates-default=\"true\">
    <variable>WORD</variable>
   </entry>
   <button has-default=\"true\">
    <input file stock=\"gtk-find\"></input>
    <label>$(gettext 'dict')</label>
    <action>/tmp/pdict-func1 \$WORD \$MYCHOICE</action>
    <action>refresh:INFO</action>
   </button>
  </hbox>
  <text><label>$(gettext 'Choose which online database (default is all):')</label></text>
  <combobox>
   <variable>MYCHOICE</variable>
$COMBOCONTENT
  </combobox>
  <frame result:>
   <edit>
    <variable>INFO</variable>
    <input file>/tmp/pdict-results.txt</input>
    <width>450</width>
    <height>300</height>
   </edit>
  </frame>
  <hbox>     
   <button>
    <label>$(gettext 'exit')</label>
    <input file stock=\"gtk-quit\"></input>
    <action type=\"exit\">EXIT</action>
   </button>
  </hbox>
 </vbox>
</window>
"

##i don't know enough about themes to do this any better...
##note, normal gtkrc is now ~/.gtkrc
#cp -f /etc/gtk-2.0/gtkrcMONOSPACED /etc/gtk-2.0/gtkrc
#echo '#!/bin/sh
# sleep 2
# rm -f /etc/gtk-2.0/gtkrc
#' > /tmp/delaygtkrc.sh
#chmod 755 /tmp/delaygtkrc.sh
#/tmp/delaygtkrc.sh &


RETSTRING="`gtkdialog3 --program=MAIN_DIALOG`"

###END###
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 16 May 2013, 13:35    Post subject: Programs and scripts that are not yet internationalized
Subject description: ssh-gui
 

robwoj44 wrote:
Thank you for the verification. I add the sources of gpptp and ssh-gui. I made the internalization of c files for the first time. It seems to work (I connected to vpn with polish gpptp), but really I'm not sure if I made it correctly. To make the pot file I used: xgettext -d gpptp -s -o gpptp.pot --keyword=_ gpptp.c

I am also no C guru, just tried to internationalize some progs.

gpptp
can be edited now (don't know what was wrong Rolling Eyes )
ssh-gui
mo file can be created and used
but not edited (by momanager and me)
compiling:
file INSTALL said: make (that's all) but did not succed.
but in console this was working:
Quote:
# gcc -o ssh-gui ssh-gui.c ssh_widget.c notebook.c `pkg-config --libs --cflags gtk+-2.0`
notebook.c: In function ‘destroy’:
notebook.c:12:2: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
# upx ssh-gui
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2013
UPX 3.09 Markus Oberhumer, Laszlo Molnar & John Reiser Feb 18th 2013

File size Ratio Format Name
-------------------- ------ ----------- -----------
22510 -> 8832 39.24% linux/elf386 ssh-gui

Packed 1 file.
# xgettext -d ssh-gui -s -o ssh-gui.pot --keyword=_ ssh-gui.c ssh_widget.c notebook.c
#


Sorry I have no idea how to continue for now Crying or Very sad

[edit] I suspect it has something to do with different CHARSET

Last edited by L18L on Fri 17 May 2013, 14:23; edited 1 time in total
Back to top
View user's profile Send private message 
robwoj44

Joined: 08 Aug 2008
Posts: 363
Location: Warsaw

PostPosted: Thu 16 May 2013, 13:48    Post subject:  

I think it is my fault. I do not add the file netbook.c which I did not change.
I reloaded sources.tar.gz with this file and Makefile.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3263
Location: Ontario

PostPosted: Thu 16 May 2013, 20:05    Post subject: alien2puppy  

alien2puppy by 01micko should be gettexted.
The instructions are important and all in English.
It could be included in a langpack as well.

I'll look at it and post a gettext version on Saturday.

__________________________________________

The help system of 'strippkg' is in English but it's only a couple of words.
It's not worth translating.

___________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3263
Location: Ontario

PostPosted: Sat 18 May 2013, 14:03    Post subject: alien2puppy - gettext  

I was successful in making a gettext version of 'alien2puppy'

People can now put it in their langpacks if they wish.

Available HERE

____________________________________________________

I discovered that Momanager is useless if the script has expressions
that use UTF-8 characters. I had to use strictly ascii.

L18L explained how to get around this problem
with a terminal command but shouldn't Momanager be
able to handle UTF-8 characters.

Code:
xgettext --from-code=UTF-8 -L shell script.sh
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 927

PostPosted: Sat 18 May 2013, 18:55    Post subject:  

Thanks for your work Don Cool

Your gettexted version of alien2puppy is working fine. See attachment for a dutch alien2puppy Smile

As a beginning momanager user I have noticed it is important to specify utf-8 in both Geany and Poedit, before saving the translation.

Geany: Document>Set encoding>Unicode>UTF-8
Geany will otherwise close without warning when saving and translation is lost

Poedit: Catalog>Setup>charset.
Poedit will give error to show utf-8 is needed

That way typical utf-8 characters are accepted and included like they should be in the translation (é, à, ç, ö, etc..)

Hope I understood what you are saying correctly.
capture30560.png
Description 
png

 Download 
Filename  capture30560.png 
Filesize  46.2 KB 
Downloaded  252 Time(s) 

_________________


Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 19 May 2013, 08:29    Post subject: Re: alien2puppy - gettext  

don570 wrote:
...I discovered that Momanager is useless if the script has expressions
that use UTF-8 characters....


I would define it in a positive way:

The script maker ensures that it can be translated using momanager Cool


Bert wrote:
it is important to specify utf-8 in both Geany and Poedit

+1 Very Happy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 4 [55 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1436s ][ Queries: 12 (0.0064s) ][ GZIP on ]