Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/lib/txplib_update.php - 49 lines - 1408 bytes - Summary - Text - Print

Description: Collection of update tools.

   1  <?php
   2  
   3  /*
   4   * Textpattern Content Management System
   5   * https://textpattern.com/
   6   *
   7   * Copyright (C) 2020 The Textpattern Development Team
   8   *
   9   * This file is part of Textpattern.
  10   *
  11   * Textpattern is free software; you can redistribute it and/or
  12   * modify it under the terms of the GNU General Public License
  13   * as published by the Free Software Foundation, version 2.
  14   *
  15   * Textpattern is distributed in the hope that it will be useful,
  16   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18   * GNU General Public License for more details.
  19   *
  20   * You should have received a copy of the GNU General Public License
  21   * along with Textpattern. If not, see <https://www.gnu.org/licenses/>.
  22   */
  23  
  24  /**
  25   * Collection of update tools.
  26   *
  27   * @package Update
  28   */
  29  
  30  /**
  31   * Installs language strings from a file.
  32   *
  33   * This function imports language strings to the database
  34   * from a file placed in the ../lang directory.
  35   *
  36   * Running this function will delete any missing strings of any
  37   * language specific event that were included in the file. Empty
  38   * strings are also stripped from the database.
  39   *
  40   * @param      string $lang The language code
  41   * @return     bool TRUE on success
  42   * @package    L10n
  43   * @deprecated in 4.7.0
  44   */
  45  
  46  function install_language_from_file($lang)
  47  {
  48      return Txp::get('\Textpattern\L10n\Lang')->installFile($lang);
  49  }

title

Description

title

Description

title

Description

title

title

Body