Contributions API

i18nstrings_location

Definition

i18nstrings_location($context)
contributions/i18n/i18nstrings/i18nstrings.module, line 503

Description

Get location string from context

Returns the location for the locale table for a string context

Code

<?php
function i18nstrings_location($context) {
  if (is_string($context)){
    $context = i18nstrings_context($context);
  }
  $location[] = $context->type;
  if ($context->oid) {
    $location[] = $context->oid;
    if ($context->property) {
      $location[] = $context->property;
    }
  }
  return implode(':', $location);
}
?>