Hace un tiempo publiqué cómo traducir nuestras aplicaciones PHP con gettext, ahora le toca el turno a nuestras aplicaciones en C.
El procedimiento es muy parecido, por lo que no voy a especificar la creación de ficheros po y mo en este artículo, os remito al anterior.
El código fuente no es que varíe demasiado de PHP pero es interesante echarle un ojo. Si queremos traducir este programa:
1 2 3 4 5 6 7 8 |
Haremos algo parecido a lo siguiente:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Ahora, si tenemos el archivo locale/fr_FR/LC_MESSAGES/miProyecto.mo dentro, veremos el mensaje en francés. Si en lugar de imponer el francés, queremos detectar la locale del sistema, en el setlocale podemos poner:
1 |
Y si queremos saber el nombre de la locale actual:
Foto: Martin Pilat (Flickr CC-by)
Pingback: Bitacoras.com /
Pingback: Scripts multilingües en bash con gettext / Traducciones en scripts – Poesía Binaria /
I just wanted to let you know that I just looked at your website and found it to be very interesting and helpful quordle
To relax and have fun visit our website flagle
It is the best time to fulfil your wildest fantasies and dreams. Every man craves a hot and romantic date with a beautiful girl and if you have not done this yet, then goes for Escorts in Connaught Place . It is the place where you can choose the call girls of your type and go on a long drive. Many people lack confidence in them due to which they hesitate to contact girls. Connaught Place call girls are confident, bold, intelligent and educated as well.
Hence, the Call Girls Service in Greater Noida are the ones you should meet as soon as possible as they are the Call girls that you desire the most. You don’t know this fact yet but once you visit our gallery, you would know why we as so bold to make such a statement.
Many agencies do such a good job that their Escorts are very beautiful, which will fascinate you in the first instance, but here Andheri Escorts will explain to you that you will not be able to tell about the service of someone; for this, you have to talk to us. If we said that a Escorts is right for you, it means that we want to give you the best test by a Andheri call girl because we have been in this market for a long time and have more experience than you as a call girl. You should have a friendly attitude towards them.
There are several methods available for men to remove body hair, each with its own advantages and considerations. Here are nine popular ways to remove body hair for men:
Before choosing a method to remove body hair, consider factors such as skin sensitivity, hair thickness and density, desired results, and budget. It’s also essential to follow proper pre- and post-care instructions to minimize irritation and achieve the best possible results. If you’re unsure which method is right for you, consult with a dermatologist or licensed esthetician for personalized recommendations.-ways to remove body hair for men
Thank you very much! I appreciate your kind words. I’m here to assist you whenever you need help or information in the future. If you have any questions or require assistance, please don’t hesitate to reach out. Wishing you continued success, happiness, and fulfillment in all your endeavors as well. Take care, and have a fantastic day! I’m also looking forward to our next interaction.
VIP bodyguard services in New York City offer premium protection and personalized security solutions for high-profile individuals, celebrities, executives, dignitaries, and other VIPs. These services are designed to ensure the safety, privacy, and peace of mind of clients in a variety of settings and situations. Here are some key aspects of VIP bodyguard services in New York City.hire bodyguard nyc
Huggie Beauty is a professional beauty spa where we paired the most advanced technologies with the highest standards of service. https://www.huggiebeauty.net/