Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Someone
Tuesday, March 11th, 2008 at 3:17:24pm UTC 

  1. common-install-prehook-impl::
  2.         mkdir -p po
  3.         -XGETTEXT=/usr/bin/kde-xgettext EXTRACTATTR=/usr/bin/extractattr sh $(DEB_SRCDIR)/admin/cvs.sh extract-messages 
  4.         -for file in po/*pot; do \
  5.                 sed "s/charset=CHARSET/charset=UTF-8/" -i $$file; \
  6.         done
  7.  
  8.         # generate .po files for .desktop etc files
  9.         if [ -f debian/kubuntu-desktop-i18n/createdesktop.pl ]; then \
  10.           sh debian/kubuntu-desktop-i18n/findfiles LIST; \
  11.           cat LIST; \
  12.           perl debian/kubuntu-desktop-i18n/createdesktop.pl --file-list=LIST --base-dir=. > desktop.$(DEB_SOURCE_PACKAGE).tmp; \
  13.           msguniq --to-code=UTF-8 --no-wrap -o desktop.$(DEB_SOURCE_PACKAGE) desktop.$(DEB_SOURCE_PACKAGE).tmp 2>/dev/null; \
  14.           python debian/kubuntu-desktop-i18n/msgsplit desktop.$(DEB_SOURCE_PACKAGE); \
  15.           mv desktop.$(DEB_SOURCE_PACKAGE) po/desktop_$(DEB_SOURCE_PACKAGE).pot; \
  16.           rm -f desktop.$(DEB_SOURCE_PACKAGE) desktop.$(DEB_SOURCE_PACKAGE).tmp; \
  17.           # add translation domain to files \
  18.           for file in `cat LIST`; do \
  19.             echo X-Ubuntu-Gettext-Domain=desktop_$(DEB_SOURCE_PACKAGE) >> $${file}; \
  20.           done; \
  21.           rm -f LIST; \
  22.         fi
  23.  
  24. common-post-build-arch::
  25.         msgcat kde.pot po/kdelibs.pot > kdelibs.pot-merged
  26.         mv kdelibs.pot-merged po/kdelibs.pot

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right