• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux po2c Download

po2c

February 9, 2008
Po2c is a software tool for translation of language files, making use of Perl scripts. It accepts gettext files in the argument of its command line for translation purposes. The software tool is designed to simplify translation between languages.
Version 1.0.2
License GPL
Platform Linux
Supported Languages English
Homepage www.triptico.com
Developed by Angel Ortega
Po2c is a convenient and efficient Perl script that enables users to extract and bundle gettext (.po) language translation files from its command line arguments. This process results in a C source code file which includes all the necessary messages and functions to use them without any other dependency. It is especially useful when deploying .po translated strings to systems that lack easy gettext support such as win32 or for embedded or small systems.

The C source code file generated includes the original and translated messages as a group of static, NULL terminated pointer-to-string arrays alongside the following two C functions – po2c_setlang(char * lang) and po2c_gettext(char * msgid). The po2c_setlang() function is used to set the user's desired language by reading it either from the user or from any of the LANG, LC_ALL and LC_MESSAGES environment variables. The processed .po files' names must match those language strings.

On the other hand, the po2c_gettext() function is a convenient tool that works orthogonally to the original gettext() function. The msgid is the character string to translate and it returns the translated string if found, or the same msgid otherwise.

Suppose a user has a directory named po that includes two files – po/es.po and po/fr.po. The former includes translations in Spanish while the latter includes translations in French. Thus, running the following command: po2c po/*.po > lang.c, results in creating the lang.c C source file.

The generated lang.c C source file is entirely static, and the binary only needs to link against the C library. It includes the original and translated messages as a group of static, NULL terminated pointer-to-string arrays alongside the necessary functions.

To use the generated C source code file, a user only needs to compile and link it against their code. There, they'll add the function prototypes and use them seamlessly.

The only requirement to use po2c is the use of Perl. It is a small yet useful script that is flexible and can be quickly integrated into various software projects.
What's New

Version 1.0.2: N/A

Free Download 4K
381
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

USB Headset Buttons
The USB Headset Buttons software allows you to use the volume up ...
Ubuntu Common Hooker
Ubuntu Common Hooker is software that facilitates the installation of packages for ...
mpodder
Mpodder is a user-friendly tool for receiving podcasts through a command line ...
moodss
Moodss is a software application that offers modular monitoring techniques by using ...
ricoh-webcam-r5u870
The Ricoh Webcam R5U870 software is a Linux driver that supports OEM ...
nLive Core
nLive Core is a web-based Linux server software with a user-friendly interface ...
Chakra LiveCD
Powerful and user-friendly Live CD software.
gt5
GT5 is a software tool that helps users to identify the disk ...
DateTime::Locale::kl
This software package, DateTime::Locale::kl, enables users to use Kalaallisut language with DateTime. ...
Parsecgi
Parsecgi is a software that extracts and stores information from HTML forms ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.