• 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 Locale::Maketext::Gettext Download

Locale::Maketext::Gettext

May 10, 2009
This software combines gettext and Maketext frameworks, enabling efficient localization of web applications. It allows developers to streamline the translation process and deliver user-friendly content in multiple languages.
Version 1.27
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage www.imacat.idv.tw
Developed by imacat
Locale::Maketext::Gettext is a Perl module that seamlessly merges the GNU gettext and Maketext frameworks. This module follows the way GNU gettext operates and is a subclass of Locale::Maketext(3). By combining the advantages of both frameworks, it offers a better solution to localizing your application while solving their respective problems.

To use this module, you first need to create a localization class. You can achieve this by using the following code:

```
package MyPackage::L10N;
use base qw(Locale::Maketext::Gettext);
return 1;
```

For your application to use this localization class, you will need to add:

```
use MyPackage::L10N;
$LH = MyPackage::L10N->get_handle or die "What language?";
$LH->bindtextdomain("mypackage", "/home/user/locale");
$LH->textdomain("mypackage");
$LH->maketext("Hello, world!!");
```

These lines define your preferred language, enable producing localized messages and execute a formal translation process. You can also have more control over your preferences by providing extra details:

```
# Change the output encoding
$LH->encoding("UTF-8");

# Stick with the Maketext behavior on lookup failures
$LH->die_for_lookup_failures(1);

# Flush the MO file cache and re-read updated MO files
$LH->reload_text;

# Set the encoding of your maketext keys, if not in English
$LH->key_encoding("Big5");

# Set the action when encode fails
$LH->encode_failure(Encode::FB_HTMLCREF);
```

Additionally, you can use Locale::Maketext::Gettext to read and parse the MO file:

```
use Locale::Maketext::Gettext;
%Lexicon = read_mo($MOfile);
```

Starting a localization project is easy, follow the typical GNU gettext localization project steps: Work on PO files with the help of translators, reviewers and Emacs, and then turn them into MO files with msgfmt. Copy them into the appropriate locale directory. Once you have completed this step, build your Maketext localization class by changing your base class from Locale::Maketext(3) to Locale::Maketext::Gettext.

In conclusion, Locale::Maketext::Gettext is a great Perl module for localization. It provides a seamless integration of the GNU gettext and Maketext frameworks while giving you more control over your preferences, making your localization process smoother and more efficient.
What's New

Version 1.27: N/A

Free Download 53.6K
322
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    92
  4. SlideMap 1.2.2
    82
  5. CherryTV 0.1
    81
  6. porm r2
    79
  7. Swiftfox 3.0b5pre-2
    77
  8. Java Games 1.0
    76
  9. Clewarecontrol 0.8
    75
  10. fuseftp 0.8
    74

Related Downloads

WineRar
WineRar is a KDE servicemenu that facilitates WinRar integration through Wine in ...
XShipWars
XShipWars is a network game system focused on space exploration and battle, ...
assimilate3d
Assimilate3d is a multi-platform 3D game engine that utilizes SDL/OpenGL technology.
Paymaster
Paymaster offers a combined payroll and HR solution for businesses. It is ...
bpgsql
bpgsql is a Python-based PostgreSQL client that offers minimalistic features. It is ...
Mock
This software is a Mocking and Testing Library designed to facilitate the ...
Storix System Backup Administrator
Storix System Backup Administrator offers an easy-to-use GUI for executing backups.
ftRTOS
ftRTOS is a compact and free real-time operating system designed for microcontrollers ...
Usermin
Usermin is a simple-to-use web interface designed for UNIX systems that lets ...
Stickloader
Stickloader is a software for speedy filling of mp3 sticks that works ...
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.