Home | Index

r3 Reference Guide

r3 var Commands

The var commands support a new variable substitution tag, <r3:domvar>. Rather than using tags to store substitutions that are not strictly translations, a <r3:domvar> tag is used in conjunction with a vars table in the database to perform key/phrase substitutions. Most of the functionality is very similar to that for translations. The major difference occurs with save commands. Whereas r3 stores translations in xliff format suitable for translation tools, vars data is stored in a simpler, standard xml file format.

usage:r3 [-c <arg>] [-u] [-x] [-q] var
var substitution utilities

set                   set value for var key term
save                  save various var data to file
merge [-l <arg>]      merge var data from file
list                  list vars in location (to generic level unless full path given)
view                  view var
delete                delete var
promote [-f]          promote specified key term in var towards more generic level
specialize            specialize var towards a more specific level
searchpath            pathinfo for var
move                  move key for var between two locations
clear                 clear part or all vars

r3 var set

r3 var set location name var

Sets the substitution value of name at the location specified by location . You can specify location leaving off the page element; in that case, the command sets the value for var in the generic page. If location specifies a non-generic page, the command assumes the page already exists. (That is, you should have already created the page using r3 target create).

For example: r3 var set cheese/ca xyz abc creates the value abc for xyz for the location cheese/ca/generic. When a template at cheese/ca/generic contains <r3:domvar>xyz</r3:domvar>, r3 substitutes this with abc.

aliases

  • set : create

flags

  • none