Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2010-03-04 15:42:06

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: Textpacks: I18N facility for plugins and other third party software

Oh Mary… Sometimes I’m quite glad that SWMBO does not frequent this venue.

Offline

#17 2010-03-04 15:49:41

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Textpacks: I18N facility for plugins and other third party software

LOL

Just sharing the love – I’ve gotten several vows of love and marriage proposals over the years here. :D

Offline

#18 2010-03-05 00:57:04

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: Textpacks: I18N facility for plugins and other third party software

I’d marry any one who could provide an idiot’s guide to using this Plugin/TextPack to allow for a dual language contact form.

( of course I, being the idiot, would refrain from having children )


…. texted postive

Offline

#19 2010-03-05 02:35:29

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Textpacks: I18N facility for plugins and other third party software

bici wrote:

Plugin/TextPack to allow for a dual language contact form.

Are you after multilingual support? To make language user changeable is a whole different case. Currently this is just a method to add, with less hassle, strings into language database so that they can be called later on from the correct language set.

Our friend Mr. MLP allows you to do multi-lang sites. And ZCR has some forms.

Offline

#20 2010-03-05 19:57:17

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Textpacks: I18N facility for plugins and other third party software

wet wrote:

A plugin author would embed her Textpack in the plugin’s metadata and let the core do rest upon installation:

Could txp_plugin table get textpack field that might store the installed textpack? That way the language strings can be uninstalled and the plugins can be re-packaged directly from database. Also favors ied_plugin_composer and rah_plugin_download.

Mary wrote:

Just sharing the love – I’ve gotten several vows of love and marriage proposals over the years here. :D

Horny men. And men don’t know that girls use interwebs too. When they see one doing it… ;-)

Offline

#21 2010-03-07 06:11:10

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Textpacks: I18N facility for plugins and other third party software

My temptation after having poked around the idea of writing a textpacks manager plugin would be to add a DB column to txp_lang, a way to tag textpack additions with an identifier that could be used to select a specific textpack or textpack author by query; something optional that would be written if included much like the language and event are in the textpack text.
My first toss was a six character string, first 3 characters would be the author or set identifier, the second 3 characters would be a unique textpack identifier, but any method could be devised by the user or developer once the choice was made available. It would open doors to further development.

Offline

#22 2010-04-04 16:49:05

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Re: Textpacks: I18N facility for plugins and other third party software

how to install this update ?

is it just replacing the old content ?

is it safe ?


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

#23 2010-04-07 19:19:05

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Textpacks: I18N facility for plugins and other third party software

Is there any interest in testing a plugin that will run under TXP VER 4.2.0? This is a clone of Robert’s original commit moved into an admin side plugin with some additions to allow for tagging textpacks with an ID of sorts to allow for removing them if you need to without the tedious phpmyadmin approach.

Source Code

ras_lang_manager_v0.1b-1.txt

This plugin :
1. adds a column named `pack` to txp_lang upon installation and enabling, I’d be sure you want that before you enable it. (there is no uninstall set up for that change yet).

2. adds string pairs to the language table much like the textpacks facility in the current SVN with exception that a “packid” is also added with the textpack text.

3. creates a delete link in the plugin display that when activated deletes all rows in txp_lang tagged with that ID.

I haven’t found any problems with this plugin as yet, but I would nevertheless use it with caution. My understanding of this code is as yet a little fuzzy in view of the fact that much of it was cobbled together from Robert’s original code, some of which I am still sorting out the details of. Given any interest or feedback of a positive nature with this and I’ll create a plugin thread for it, at present I’m just looking for some idea as to the general value of pursuing it.

Offline

#24 2011-06-30 20:18:15

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: Textpacks: I18N facility for plugins and other third party software

Is there any example floating around how to make use of textpacks inside a theme or single templates?


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#25 2012-10-17 05:47:49

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: Textpacks: I18N facility for plugins and other third party software

r4341 introduces ownership of language strings.

Possible owners are:

  • LANG_OWNER_SYSTEM: The string is unconditionally updated from the language server.
  • LANG_OWNER_SITE: The string is localised by procedures at the particular site like uploaded textpacks, manual database manipulation, or dedicated plugins. It is not updated from the language server.
  • A plugin’s name: The string is automatically installed from an embedded
    textpack during the plugin upload and removed when the plugin is deleted.

Offline

#26 2015-09-03 10:28:14

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: Textpacks: I18N facility for plugins and other third party software

Could it be possible to use textpacks at front end? I’m thinking about a plugin (or core tag) to retrieve text strings on forms and page templates. For instance <txp:textstring id=“123”/> where 123 will be the 123th line of a textpack.

I think that something like this will be usefull to build basic multilingual sites, but I don’t know if is there a plugin for that kind of stuff.


<txp:rocks/>

Offline

#27 2015-09-03 13:06:20

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: Textpacks: I18N facility for plugins and other third party software

txp:text perhaps?

Offline

#28 2015-09-03 15:47:02

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: Textpacks: I18N facility for plugins and other third party software

wet wrote #294490:

txp:text perhaps?

OMG! That’s it. Love textpattern!


<txp:rocks/>

Offline

Board footer

Powered by FluxBB