Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.274.770 Times

Translation helpers 7.x-1.0

  Date Added: April 14, 2013  |  Visits: 602

Translation helpers

Report Broken Link
Printer Friendly Version


Product Homepage
Download (46 downloads)



Translation helpers enables other modules to respond to changes in the "source translation" of a set of translated content. This functionality is useful for modules that track data by the "source translation" (node.tnid value).The module also provides other methods for modules to use with translated content.Developer usagehook_nodeapi('translation_change', $node)Translation helpers invokes a new $op for hook_nodeapi(): 'translation_change'.Implement this hook to respond to a change in a translation set. This is useful for any module tracking data by source translation (node.tnid).The $node object passed to this hook has a $node->translation_change property, consisting of an array. Keys are:'old_tnid': the now-deleted tnid (translation set ID).'new_tnid': the new translation set ID. If the translation set has been removed (because there was only a single remaining translation), this will be 0.'remaining_nid': in the case that the translation set was removed, the nid of the remining former member of the translation set.When a translation is deleted, one of two things can happen: 1. If there is only one remaining member of the translation set, the set is removed. In this case, the $node->translation_change['new_tnid'] value will be 0. 2. If the deleted node was the source translation and there are at least two remaining translations, a new translation source is selected. In this case, the $node->translation_change['new_tnid'] will be the nid of new translation source.Here's a sample hook implementation:See #318328: Hook to respond to change of source translation for a patch to add this hook to the core translation module.translation_helpers_get_translation($node, $language)Call this function to get the translation of a node in a given language. Returns FALSE if no such translation found.translation_helpers_get_source($node)Call this function to get the source translation of a node. Returns FALSE if no such translation found.Sponsored in part by CivicActions.

Requirements: No special requirements
Platforms: PHP
Keyword: Change Deleted Function Member Module Modules Nodegttranslation Change Tnid Quotsource Remaining Removed Respond Returns Source Track Translated Translation Translationquot
Users rating: 0/10

License: Freeware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


TRANSLATION HELPERS RELATED
Modules  -  Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead...
10 KB  
Libraries  -  Class::Observable 1.04
Class::Observable is a Perl module that allows other classes and objects to respond to events in yours. SYNOPSIS # Define an observable class package My::Object; use base qw( Class::Observable ); # Tell all classes/objects observing this...
10.24 KB  
Finance  -  Data redirect 3.7.6.214
Data redirect is an additional module that allows you redirect a data from one data source (for example, COM1) to another data source (for example, COM2). In this case the program will work as a bridge between two data sources. You may filter or...
 
Desktop Utilities  -  ASCII Art Maker 1.4
Program for creation ASCII graphics Program Features: - random symbol - custom symbols - symbol selection - change font size - add background color - resize source image - load images: BMP, JPG, GIF, PNG - save as HTML, TXT, BMP, JPG, GIF, PNG
475 KB  
Libraries  -  Chart::Graph::Gnuplot 3.2
Chart::Graph::Gnuplot is a function in module Chart::Graph that lets you generate graphs on the fly in perl. SYNOPSIS use Chart::Graph::Gnuplot qw(&gnuplot); gnuplot(%global_options, [%data_set_options, @matrix], [%data_set_options,...
8.19 KB  
Automation Tools  -  OpenRelease 0.1.13
OpenRelease is a Python module which automates the packaging, release and announcement of Open Source software. The pack class creates packages, which are defined by packer classes, manages versioning, and brings up your notes and changelog in...
143.36 KB  
Multimedia & Graphics  -  Gaim/Gajim now Listen 0.1
Gaim/Gajim now Listen is a script to automatically change your status message on Gaim whenever a track changes in Amarok. Its an extension of this script: http://kde-apps.org/content/show.php?content=37265 Doesnt check for whether the user...
 
Benchmark Tools  -  Stopwatch Perl Module 0.10.3
Perf::Stopwatch is a Perl Module that can be quickly added and removed from any existing code to debug/optimize portions of code. Example of use are: database calls, loop efficiency, total script time, and webpage timeouts.
5.98 KB  
Programming  -  B2BOS 1.0
The 'Business to Business Operating System' is a set of Java-based modules for providing auctions, catalogs, directories as an open-source alternative to B2B E-Marketplaces. The 'operating system' aspect relates to the resource allocation capability.
127.47 KB  
Miscellaneous  -  Getting th permutation of a sequence 1.1
This script contains a function that given a sequence and a number n as parameters, returns the th permutation of the sequence (always as a list).
 
NEW DOWNLOADS IN SCRIPTS, MODULES
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Modules  -  TinyMCE Node Picker 6.x-2.1
This module will de discontinued and replaced with Node Picker as soon as a stable release is available.TinyMCE Node Picker provides a button in TinyMCE that displays a list of links to content. Choosing a link inserts it into the editor.The...
20.48 KB  
Modules  -  Fapilicious 5.x-1.x-de
Fapilicious is a collection of FormAPI goodies.I hope to make it a repository of reusable FormAPI trickery and short cuts. Currently it has small collection of powerful FormAPI element validators.Please submit your favorite tricks as patches so we...
10 KB  
Modules  -  Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target...
20.48 KB  
Modules  -  Plica Twitter 1.0.1
Plica TwitterInstallation : * Download, unzip, and install plugin dir in /wp-content/plugins * Activate * All right now
10 KB  
Modules  -  Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead...
10 KB